camera-stream 0.3.0

A cross-platform library for streaming frames from cameras, initially supporting only macOS
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 = "2024"
rust-version = "1.85"
name = "camera-stream"
version = "0.3.0"
authors = ["Jasper Hugo <jasper@jasperhugo.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cross-platform library for streaming frames from cameras, initially supporting only macOS"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/jbg/camera-stream"

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
std = []

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

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

[dependencies.arrayvec]
version = "0.7"
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
features = ["exception"]

[target.'cfg(target_os = "macos")'.dependencies.objc2-av-foundation]
version = "0.3"
features = [
    "AVCaptureDevice",
    "AVCaptureSession",
    "AVCaptureInput",
    "AVCaptureOutput",
    "AVCaptureOutputBase",
    "AVCaptureVideoDataOutput",
    "AVCaptureSessionPreset",
    "AVMediaFormat",
    "objc2-core-media",
]

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3"
features = ["CFCGTypes"]

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-media]
version = "0.3"
features = [
    "CMSampleBuffer",
    "CMTime",
    "CMFormatDescription",
]

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-video]
version = "0.3"
features = [
    "CVPixelBuffer",
    "CVBuffer",
    "CVImageBuffer",
    "CVBase",
    "CVReturn",
]

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
    "NSString",
    "NSArray",
    "NSError",
    "NSObject",
    "NSObjCRuntime",
    "NSValue",
]