# 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 = "av-foundation"
version = "0.8.1"
authors = ["Zhou Wei <zhouwei@ehom.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings to AVFoundation framework"
homepage = "https://github.com/rust-media/apple-media-rs"
documentation = "https://docs.rs/av-foundation"
readme = "README.md"
keywords = [
    "avfoundation",
    "camera",
    "capture",
]
categories = [
    "multimedia::video",
    "os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-media/apple-media-rs"

[package.metadata.docs.rs]
no-default-features = true
features = ["capture"]
default-target = "x86_64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "aarch64-apple-ios",
    "x86_64-apple-darwin",
    "x86_64-apple-ios",
]

[features]
audio = []
capture = []
default = [
    "capture",
    "link",
]
editing = []
link = [
    "core-foundation/link",
    "core-media/link",
    "core-video/link",
]
playback = []

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

[dependencies.block2]
version = "0.6"

[dependencies.core-foundation]
version = "0.10"
default-features = false

[dependencies.core-graphics2]
version = "0.6.1"
features = ["objc"]
default-features = false

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

[dependencies.core-video]
version = "0.6.1"
features = ["objc"]
default-features = false

[dependencies.dispatch2]
version = "0.3"

[dependencies.libc]
version = "0.2"

[dependencies.objc2]
version = "0.6"

[dependencies.objc2-foundation]
version = "0.3"
features = [
    "NSArray",
    "NSDictionary",
    "NSEnumerator",
    "NSError",
    "NSRange",
    "NSString",
    "NSValue",
]
