From c53fa350726ed0c42f1df713c55f7f3b85e57df6 Mon Sep 17 00:00:00 2001 From: NiiightmareXD Date: Fri, 10 Nov 2023 05:04:45 -0800 Subject: [PATCH] =?UTF-8?q?Bump=20Version=20=E2=AD=90=20=09modified:=20=20?= =?UTF-8?q?=20Cargo.lock=20=09modified:=20=20=20Cargo.toml=20=09modified:?= =?UTF-8?q?=20=20=20README.md=20=09modified:=20=20=20examples/basic.rs=20?= =?UTF-8?q?=09modified:=20=20=20src/capture.rs=20=09modified:=20=20=20src/?= =?UTF-8?q?d3d11.rs=20=09modified:=20=20=20src/lib.rs=20=09modified:=20=20?= =?UTF-8?q?=20windows-capture-python/Cargo.toml=20=09modified:=20=20=20win?= =?UTF-8?q?dows-capture-python/README.md=20=09modified:=20=20=20windows-ca?= =?UTF-8?q?pture-python/pyproject.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- README.md | 4 ++-- examples/basic.rs | 2 +- src/capture.rs | 2 +- src/d3d11.rs | 4 ++-- src/lib.rs | 4 ++-- windows-capture-python/Cargo.toml | 2 +- windows-capture-python/README.md | 4 ++-- windows-capture-python/pyproject.toml | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5f70c0f..2a46b1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -603,7 +603,7 @@ dependencies = [ [[package]] name = "windows-capture" -version = "1.0.24" +version = "1.0.26" dependencies = [ "image", "log", @@ -615,7 +615,7 @@ dependencies = [ [[package]] name = "windows-capture-python" -version = "1.0.24" +version = "1.0.26" dependencies = [ "log", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index 3bea882..27cbbd5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 🔥" diff --git a/README.md b/README.md index 414966c..fa492be 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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> { println!("Capture Session Closed"); diff --git a/examples/basic.rs b/examples/basic.rs index b36b494..c78a5a8 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -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> { println!("Capture Session Closed"); diff --git a/src/capture.rs b/src/capture.rs index 12d8b60..eb987ba 100644 --- a/src/capture.rs +++ b/src/capture.rs @@ -218,7 +218,7 @@ pub trait WindowsCaptureHandler: Sized { ) -> Result<(), Box>; /// 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>; /// Call To Stop The Capture Thread, You Might Receive A Few More Frames diff --git a/src/d3d11.rs b/src/d3d11.rs index cd9f733..7dc5f41 100644 --- a/src/d3d11.rs +++ b/src/d3d11.rs @@ -40,8 +40,8 @@ pub enum DirectXErrors { } /// Create ID3D11Device And ID3D11DeviceContext -pub fn create_d3d_device( -) -> Result<(ID3D11Device, ID3D11DeviceContext), Box> { +pub fn create_d3d_device() +-> Result<(ID3D11Device, ID3D11DeviceContext), Box> { // Set Feature Flags let feature_flags = [ D3D_FEATURE_LEVEL_11_1, diff --git a/src/lib.rs b/src/lib.rs index 5034cea..e8ee478 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ //! //! ```toml //! [dependencies] -//! windows-capture = "1.0.24" +//! windows-capture = "1.0.26" //! ``` //! or run this command //! @@ -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> { //! println!("Capture Session Closed"); //! diff --git a/windows-capture-python/Cargo.toml b/windows-capture-python/Cargo.toml index 43bc814..10d8688 100644 --- a/windows-capture-python/Cargo.toml +++ b/windows-capture-python/Cargo.toml @@ -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 🔥" diff --git a/windows-capture-python/README.md b/windows-capture-python/README.md index 761d2dc..4f4037a 100644 --- a/windows-capture-python/README.md +++ b/windows-capture-python/README.md @@ -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. @@ -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") diff --git a/windows-capture-python/pyproject.toml b/windows-capture-python/pyproject.toml index f0ffdd6..abe7966 100644 --- a/windows-capture-python/pyproject.toml +++ b/windows-capture-python/pyproject.toml @@ -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"