apple-cf 0.7.1

Safe Rust bindings for Apple's shared Core* frameworks (CoreFoundation, CoreMedia, CoreVideo, CoreGraphics, IOSurface, Dispatch).
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"
rust-version = "1.70"
name = "apple-cf"
version = "0.7.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE-*",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's shared Core* frameworks (CoreFoundation, CoreMedia, CoreVideo, CoreGraphics, IOSurface, Dispatch)."
homepage = "https://github.com/doom-fish/apple-cf-rs"
readme = "README.md"
keywords = [
    "coregraphics",
    "iosurface",
    "dispatch",
    "macos",
    "apple",
]
categories = [
    "api-bindings",
    "os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/apple-cf-rs"

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

[badges.maintenance]
status = "actively-developed"

[features]
all-frameworks = [
    "cg",
    "iosurface",
    "dispatch",
    "cm",
    "cv",
]
cg = []
cm = []
cv = ["iosurface"]
default = [
    "cg",
    "iosurface",
    "dispatch",
    "cm",
    "cv",
]
dispatch = []
iosurface = []
metal = []

[lib]
name = "apple_cf"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_iosurface_smoke"
path = "examples/01_iosurface_smoke.rs"

[[example]]
name = "02_dispatch_cg_smoke"
path = "examples/02_dispatch_cg_smoke.rs"

[[example]]
name = "03_cm_sample_buffer"
path = "examples/03_cm_sample_buffer.rs"

[[example]]
name = "04_cv_pixel_buffer"
path = "examples/04_cv_pixel_buffer.rs"

[[example]]
name = "05_cgcontext_smoke"
path = "examples/05_cgcontext_smoke.rs"

[[example]]
name = "06_cf_primitives"
path = "examples/06_cf_primitives.rs"

[[example]]
name = "07_cf_collections"
path = "examples/07_cf_collections.rs"

[[example]]
name = "08_cf_resources"
path = "examples/08_cf_resources.rs"

[[example]]
name = "09_cf_runtime"
path = "examples/09_cf_runtime.rs"

[[example]]
name = "10_dispatch_primitives"
path = "examples/10_dispatch_primitives.rs"

[[example]]
name = "11_cm_timebase"
path = "examples/11_cm_timebase.rs"

[[example]]
name = "12_cv_buffers"
path = "examples/12_cv_buffers.rs"

[[example]]
name = "13_cv_metal_texture_cache"
path = "examples/13_cv_metal_texture_cache.rs"

[[example]]
name = "14_cm_metadata_format_description"
path = "examples/14_cm_metadata_format_description.rs"

[[example]]
name = "15_raw_bindings"
path = "examples/15_raw_bindings.rs"

[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"

[[test]]
name = "cf_collections_tests"
path = "tests/cf_collections_tests.rs"

[[test]]
name = "cf_primitives_tests"
path = "tests/cf_primitives_tests.rs"

[[test]]
name = "cf_resources_tests"
path = "tests/cf_resources_tests.rs"

[[test]]
name = "cf_runtime_tests"
path = "tests/cf_runtime_tests.rs"

[[test]]
name = "cm_metadata_format_description_tests"
path = "tests/cm_metadata_format_description_tests.rs"

[[test]]
name = "cm_time_tests"
path = "tests/cm_time_tests.rs"

[[test]]
name = "cv_buffer_tests"
path = "tests/cv_buffer_tests.rs"

[[test]]
name = "dispatch_primitives_tests"
path = "tests/dispatch_primitives_tests.rs"

[[test]]
name = "raw_bindings_tests"
path = "tests/raw_bindings_tests.rs"

[dependencies.doom-fish-utils]
version = ">=0.1, <0.3"

[dev-dependencies.apple_cf_compat_04]
version = "0.4.0"
package = "apple-cf"

[dev-dependencies.regex-lite]
version = "0.1"

[dev-dependencies.videotoolbox]
version = "0.10.0"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]

[profile.release]
debug = 2