diff --git a/Cargo.toml b/Cargo.toml index 14457b7..3a0f445 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,41 +8,41 @@ documentation = "https://docs.rs/windows-capture" readme = "README.md" repository = "https://github.com/NiiightmareXD/windows-capture" license = "MIT" -keywords = ["screen", "capture", "screenshot", "graphics", "windows"] +keywords = ["screenshot", "screen", "capture", "graphics", "windows"] categories = [ - "os::windows-apis", "api-bindings", "graphics", "gui", "multimedia", + "os::windows-apis", ] resolver = "2" [dependencies] # Windows API windows = { version = "0.58.0", features = [ - "Win32_System_WinRT_Graphics_Capture", - "Win32_Graphics_Direct3D11", - "Win32_Foundation", + "Foundation_Metadata", + "Foundation", "Graphics_Capture", - "Win32_System_WinRT_Direct3D11", - "Win32_System_Threading", - "Win32_UI_WindowsAndMessaging", - "Win32_Graphics_Dxgi_Common", - "Win32_Graphics_Direct3D", - "Win32_Graphics_Gdi", - "System", "Graphics_DirectX_Direct3D11", - "Foundation_Metadata", - "Win32_Devices_Display", - "Storage", "Graphics_Imaging", - "Storage_Streams", - "Foundation", - "Media_MediaProperties", "Media_Core", + "Media_MediaProperties", "Media_Transcoding", "Security_Cryptography", + "Storage_Streams", + "Storage", + "System", + "Win32_Devices_Display", + "Win32_Foundation", + "Win32_Graphics_Direct3D", + "Win32_Graphics_Direct3D11", + "Win32_Graphics_Dxgi_Common", + "Win32_Graphics_Gdi", + "Win32_System_Threading", + "Win32_System_WinRT_Direct3D11", + "Win32_System_WinRT_Graphics_Capture", + "Win32_UI_WindowsAndMessaging", ] } # Mutex optimization diff --git a/src/capture.rs b/src/capture.rs index 1d09ba9..5abe35a 100644 --- a/src/capture.rs +++ b/src/capture.rs @@ -207,11 +207,11 @@ pub enum GraphicsCaptureApiError { FailedToSetDispatcherQueueCompletedHandler, #[error("Failed to convert item to GraphicsCaptureItem")] ItemConvertFailed, - #[error("Graphics capture error")] + #[error("Graphics capture error: {0}")] GraphicsCaptureApiError(graphics_capture_api::Error), - #[error("New handler error")] + #[error("New handler error: {0}")] NewHandlerError(E), - #[error("Frame handler error")] + #[error("Frame handler error: {0}")] FrameHandlerError(E), } diff --git a/src/encoder.rs b/src/encoder.rs index 900bbf8..4d4e70a 100644 --- a/src/encoder.rs +++ b/src/encoder.rs @@ -148,9 +148,9 @@ impl ImageEncoder { pub enum VideoEncoderError { #[error("Windows API Error: {0}")] WindowsError(#[from] windows::core::Error), - #[error("Frame send error")] + #[error("Frame send error: {0}")] FrameSendError(#[from] mpsc::SendError>), - #[error("Audio send error")] + #[error("Audio send error: {0}")] AudioSendError(#[from] mpsc::SendError>), #[error("Video is disabled")] VideoDisabled, diff --git a/windows-capture-python/src/lib.rs b/windows-capture-python/src/lib.rs index c47476d..4b27f16 100644 --- a/windows-capture-python/src/lib.rs +++ b/windows-capture-python/src/lib.rs @@ -357,9 +357,9 @@ struct InnerNativeWindowsCapture { #[derive(thiserror::Error, Debug)] pub enum InnerNativeWindowsCaptureError { - #[error("Python Callback Error")] + #[error("Python Callback Error: {0}")] PythonError(pyo3::PyErr), - #[error("Frame Process Error")] + #[error("Frame Process Error: {0}")] FrameProcessError(frame::Error), }