Skip to content

Commit

Permalink
Bump Version ⭐
Browse files Browse the repository at this point in the history
	modified:   Cargo.lock
	modified:   Cargo.toml
	modified:   README.md
	modified:   examples/basic.rs
	modified:   src/capture.rs
	modified:   src/d3d11.rs
	modified:   src/lib.rs
	modified:   windows-capture-python/Cargo.toml
	modified:   windows-capture-python/README.md
	modified:   windows-capture-python/pyproject.toml
  • Loading branch information
NiiightmareXD committed Nov 10, 2023
1 parent 7a6f342 commit c53fa35
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-capture"
version = "1.0.24"
version = "1.0.26"
authors = ["NiiightmareXD"]
edition = "2021"
description = "Fastest Windows Screen Capture Library For Rust 🔥"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add this library to your `Cargo.toml`:

```toml
[dependencies]
windows-capture = "1.0.24"
windows-capture = "1.0.26"
```
or run this command

Expand Down Expand Up @@ -71,7 +71,7 @@ impl WindowsCaptureHandler for Capture {
}

// Called When The Capture Item Closes Usually When The Window Closes, Capture
// Will End After This Function Ends
// Session Will End After This Function Ends
fn on_closed(&mut self) -> Result<(), Box<dyn Error + Send + Sync>> {
println!("Capture Session Closed");

Expand Down
2 changes: 1 addition & 1 deletion examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl WindowsCaptureHandler for Capture {
}

// Called When The Capture Item Closes Usually When The Window Closes, Capture
// Will End After This Function Ends
// Session Will End After This Function Ends
fn on_closed(&mut self) -> Result<(), Box<dyn Error + Send + Sync>> {
println!("Capture Session Closed");

Expand Down
2 changes: 1 addition & 1 deletion src/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ pub trait WindowsCaptureHandler: Sized {
) -> Result<(), Box<dyn Error + Send + Sync>>;

/// Called When The Capture Item Closes Usually When The Window Closes,
/// Capture Will End After This Function Ends
/// Capture Session Will End After This Function Ends
fn on_closed(&mut self) -> Result<(), Box<dyn Error + Send + Sync>>;

/// Call To Stop The Capture Thread, You Might Receive A Few More Frames
Expand Down
4 changes: 2 additions & 2 deletions src/d3d11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ pub enum DirectXErrors {
}

/// Create ID3D11Device And ID3D11DeviceContext
pub fn create_d3d_device(
) -> Result<(ID3D11Device, ID3D11DeviceContext), Box<dyn Error + Send + Sync>> {
pub fn create_d3d_device()
-> Result<(ID3D11Device, ID3D11DeviceContext), Box<dyn Error + Send + Sync>> {
// Set Feature Flags
let feature_flags = [
D3D_FEATURE_LEVEL_11_1,
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//!
//! ```toml
//! [dependencies]
//! windows-capture = "1.0.24"
//! windows-capture = "1.0.26"
//! ```
//! or run this command
//!
Expand Down Expand Up @@ -75,7 +75,7 @@
//! }
//!
//! // Called When The Capture Item Closes Usually When The Window Closes, Capture
//! // Will End After This Function Ends
//! // Session Will End After This Function Ends
//! fn on_closed(&mut self) -> Result<(), Box<dyn Error + Send + Sync>> {
//! println!("Capture Session Closed");
//!
Expand Down
2 changes: 1 addition & 1 deletion windows-capture-python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-capture-python"
version = "1.0.24"
version = "1.0.26"
authors = ["NiiightmareXD"]
edition = "2021"
description = "Fastest Windows Screen Capture Library For Python 🔥"
Expand Down
4 changes: 2 additions & 2 deletions windows-capture-python/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Windows Capture
![Crates.io](https://img.shields.io/crates/l/windows-capture) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/NiiightmareXD/windows-capture/rust.yml) ![Crates.io](https://img.shields.io/crates/v/windows-capture)
![Crates.io](https://img.shields.io/crates/l/windows-capture) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/NiiightmareXD/windows-capture/rust.yml) ![PyPI - Version](https://img.shields.io/pypi/v/windows-capture)

**Windows Capture** is a highly efficient Rust and Python library that enables you to effortlessly capture the screen using the Graphics Capture API. This library allows you to easily capture the screen of your Windows-based computer and use it for various purposes, such as creating instructional videos, taking screenshots, or recording your gameplay. With its intuitive interface and robust functionality, Windows-Capture is an excellent choice for anyone looking for a reliable and easy-to-use screen capturing solution.

Expand Down Expand Up @@ -47,7 +47,7 @@ def on_frame_arrived(frame: Frame, capture_control: CaptureControl):


# Called When The Capture Item Closes Usually When The Window Closes, Capture
# Will End After This Function Ends
# Session Will End After This Function Ends
@capture.on_closed
def on_closed():
print("Capture Session Closed")
Expand Down
2 changes: 1 addition & 1 deletion windows-capture-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "windows-capture"
version = "1.0.24"
version = "1.0.26"
description = "Fastest Windows Screen Capture Library For Python 🔥"
readme = "README.md"
requires-python = ">=3.9"
Expand Down

0 comments on commit c53fa35

Please sign in to comment.