media-device 0.8.2

A cross-platform wrapper for capture and playback devices
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "media-device"
version = "0.8.2"
authors = ["Zhou Wei <zhouwei@ehom.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cross-platform wrapper for capture and playback devices"
homepage = "https://github.com/rust-media"
documentation = "https://docs.rs/media-device"
readme = "README.md"
keywords = [
    "audio",
    "video",
    "camera",
    "capture",
    "playback",
]
categories = [
    "multimedia",
    "multimedia::audio",
    "multimedia::video",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-media/media-rs"

[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",
]

[features]
audio = ["media-core/audio"]
default = [
    "audio",
    "video",
]
video = ["media-core/video"]

[lib]
name = "media_device"
path = "src/lib.rs"

[[example]]
name = "camera"
path = "examples/camera.rs"

[dependencies.cfg-if]
version = "1.0"

[dependencies.media-core]
version = "0.8.2"
default-features = false

[dependencies.os-ver]
version = "0.2"

[dependencies.thiserror]
version = "1.0"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.log]
version = "0.4"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.av-foundation]
version = "0.5"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-audio-types]
version = "0.1"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation]
version = "0.10"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-media]
version = "0.5"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-video]
version = "0.4"
features = ["link"]
default-features = false

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.dispatch2]
version = "0.1"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2]
version = "0.5"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-foundation]
version = "0.2"
features = [
    "NSArray",
    "NSDictionary",
    "NSObject",
]

[target.'cfg(target_family = "wasm")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen]
version = "0.2"

[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")'.dependencies.web-time]
version = "1.1"

[target.'cfg(target_family = "wasm")'.dev-dependencies.console_error_panic_hook]
version = "0.1"

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.61"
features = [
    "Win32",
    "Win32_Foundation",
    "Win32_Media",
    "Win32_Media_DirectShow",
    "Win32_Media_MediaFoundation",
    "Win32_System_Com",
]

[target.'cfg(target_os = "windows")'.dependencies.windows-core]
version = "0.61"