[package] name = "video-capture" description = "Capture multimedia content from camera" homepage = "https://github.com/libark/video-capture" repository = "https://github.com/libark/video-capture" documentation = "https://docs.rs/video-capture" version = "0.1.1" authors = ["Zhou Wei "] license = "MIT OR Apache-2.0" categories = ["multimedia", "multimedia::video"] keywords = ["camera", "capture"] edition = "2021" [dependencies] cfg-if = "1.0" os-ver = "0.2" thiserror = "1.0" x-base = "0.1" x-media = "0.1" x-variant = "0.1" [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies] av-foundation = "0.5" dispatch2 = "0.1" core-foundation = "0.10" core-media = "0.5" core-video = "0.4" objc2 = "0.5" objc2-foundation = { version = "0.2", features = ["NSArray", "NSDictionary", "NSObject"] } [target.'cfg(target_os = "windows")'.dependencies] windows-core = "0.58" [target.'cfg(target_os = "windows")'.dependencies.windows] version = "0.58" features = [ "implement", "Win32", "Win32_Foundation", "Win32_Media", "Win32_Media_DirectShow", "Win32_Media_MediaFoundation", "Win32_System_Com" ] [target.'cfg(target_family = "wasm")'.dependencies] wasm-bindgen = "0.2" web-time = "1.1" js-sys = "0.3" [target.'cfg(target_family = "wasm")'.dependencies.web-sys] version = "0.3" features = [ "ImageData", "MediaDeviceInfo", "MediaDeviceKind", "MediaDevices", "MediaStream", "MediaStreamConstraints", "MediaStreamTrack", "MediaStreamTrackState", "MediaTrackConstraints", "MediaTrackSettings", "MediaTrackSupportedConstraints", "Navigator", ] [target.'cfg(target_family = "wasm")'.dev-dependencies] console_error_panic_hook = "0.1" [package.metadata.docs.rs] default-target = "x86_64-pc-windows-msvc" targets = [ "x86_64-pc-windows-msvc", "x86_64-apple-darwin", "x86_64-apple-ios", "aarch64-apple-darwin", "aarch64-apple-ios", ]