videotoolbox 0.21.0

Safe Rust bindings for Apple's VideoToolbox framework — hardware H.264/HEVC/ProRes encode and decode on 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 = "2021"
rust-version = "1.82"
name = "videotoolbox"
version = "0.21.0"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "swift-bridge/Tests/**/*",
    "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 VideoToolbox framework — hardware H.264/HEVC/ProRes encode and decode on macOS"
homepage = "https://github.com/doom-fish/videotoolbox-rs"
readme = "README.md"
keywords = [
    "videotoolbox",
    "h264",
    "hevc",
    "macos",
    "encoder",
]
categories = [
    "multimedia::encoding",
    "multimedia::video",
    "api-bindings",
    "os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/videotoolbox-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-features-flag = [
    "compression",
    "decompression",
    "async",
    "frame_processor",
]
async = []
compression = []
decompression = []
default = ["compression"]
frame_processor = ["dep:apple-metal"]

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

[[example]]
name = "01_encode_smoke"
path = "examples/01_encode_smoke.rs"
required-features = ["compression"]

[[example]]
name = "02_encode_sequence"
path = "examples/02_encode_sequence.rs"
required-features = ["compression"]

[[example]]
name = "03_async_encode"
path = "examples/03_async_encode.rs"
required-features = [
    "compression",
    "async",
]

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

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

[[example]]
name = "06_frame_processor_caps"
path = "examples/06_frame_processor_caps.rs"
required-features = ["frame_processor"]

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

[[example]]
name = "08_frame_processor_pipelines"
path = "examples/08_frame_processor_pipelines.rs"
required-features = ["frame_processor"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.apple-cf]
version = ">=0.11, <0.12"
features = [
    "cg",
    "cm",
    "iosurface",
    "cv",
]
default-features = false

[dependencies.apple-metal]
version = ">=0.10, <0.11"
optional = true
default-features = false

[dependencies.doom-fish-utils]
version = ">=0.4.1, <0.5"

[dev-dependencies.pollster]
version = "0.3"

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

[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
strip = "none"