From 8a382939785453a9624da00709b0cc0c867bac78 Mon Sep 17 00:00:00 2001 From: la1n ping tool <35755164+l1npengtul@users.noreply.github.com> Date: Tue, 25 Feb 2025 10:53:25 +0900 Subject: [PATCH] update readme for nokhwa version and add image crate as well --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf4b5c1..e0c6775 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,14 @@ A Simple-to-use, cross-platform Rust Webcam Capture Library Nokhwa can be added to your crate by adding it to your `Cargo.toml`: ```toml [dependencies.nokhwa] -version = "0.10.0" +version = "0.10" # Use the native input backends, enable WGPU integration features = ["input-native", "output-wgpu"] + +# add this to enable exporting to a JPEG/PNG +[dependencies.image] +version = "0.25" +features = ["default-formats"] ``` Most likely, you will only use functionality provided by the `Camera` struct. If you need lower-level access, you may instead opt to use the raw capture backends found at `nokhwa::backends::capture::*`.