ustreamer-encode 0.1.0

Hardware video encoding — VideoToolbox (macOS), NVENC (NVIDIA), and direct AMF
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 = "ustreamer-encode"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hardware video encoding — VideoToolbox (macOS), NVENC (NVIDIA), and direct AMF"
homepage = "https://github.com/knopkem/ultra-streamer-rs"
documentation = "https://docs.rs/ustreamer-encode"
readme = "README.md"
keywords = [
    "streaming",
    "video",
    "nvenc",
    "videotoolbox",
    "wgpu",
]
categories = [
    "multimedia::encoding",
    "hardware-support",
    "graphics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/knopkem/ultra-streamer-rs"
resolver = "2"

[features]
amf-direct = ["dep:libloading"]
default = []
nvenc-direct = [
    "dep:cudarc",
    "dep:libloading",
    "dep:nvidia-video-codec-sdk",
    "ustreamer-capture/vulkan-external",
]

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

[dependencies.cudarc]
version = "0.19.4"
features = [
    "std",
    "driver",
    "fallback-dynamic-loading",
    "cuda-version-from-build-system",
    "fallback-latest",
]
optional = true
default-features = false

[dependencies.libloading]
version = "0.8.9"
optional = true

[dependencies.nvidia-video-codec-sdk]
version = "0.4.0"
features = ["ci-check"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.ustreamer-capture]
version = "0.1.0"

[dependencies.ustreamer-proto]
version = "0.1.0"

[dependencies.wgpu]
version = "27.0"

[dev-dependencies.ustreamer-capture]
version = "0.1.0"
features = [
    "vulkan-external",
    "vulkan-external-test-utils",
]

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

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-media]
version = "0.3.2"

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-video]
version = "0.3.2"

[target.'cfg(target_os = "macos")'.dependencies.objc2-video-toolbox]
version = "0.3.2"
features = [
    "VTErrors",
    "objc2-core-media",
    "objc2-core-video",
]