alpha2-native-gpu 0.4.3

Native decoded-surface import and GPU synchronization boundary for alpha2.
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.88"
name = "alpha2-native-gpu"
version = "0.4.3"
build = "build.rs"
include = [
    "/build.rs",
    "/src/**",
    "/include/**",
    "/c/**",
    "/README.md",
    "/LICENSE.md",
    "!/src/**/tests.rs",
    "!/src/**/*_tests.rs",
    "!/src/**/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Native decoded-surface import and GPU synchronization boundary for alpha2."
readme = "README.md"
keywords = [
    "vulkan",
    "metal",
    "d3d12",
    "hardware",
    "wgpu",
]
categories = [
    "multimedia::video",
    "graphics",
]
license = "MIT"
repository = "https://github.com/alpha2-sh/alpha2"

[package.metadata.docs.rs]
features = ["hwdevice"]

[features]
default = []
hwdevice = [
    "dep:alpha2-ffmpeg-bridge",
    "alpha2-ffmpeg-bridge/hwdevice",
    "dep:alpha2-gpu",
    "dep:ash",
    "dep:objc2",
    "dep:objc2-metal",
    "dep:rsmpeg",
    "dep:wgpu",
    "dep:wgpu-hal",
    "dep:windows",
]

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

[dependencies.alpha2-ffmpeg-bridge]
version = "0.4.3"
optional = true

[dev-dependencies.alpha2-gpu]
version = "0.4.3"
features = ["serial-acquisition"]

[build-dependencies.alpha2-build-support]
version = "0.4.3"

[target.'cfg(target_os = "linux")'.dependencies.alpha2-gpu]
version = "0.4.3"
features = ["wgpu-interop"]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.ash]
version = "0.38"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.rsmpeg]
version = "0.18.0"
features = ["link_system_ffmpeg"]
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wgpu]
version = "30.0.1"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.wgpu-hal]
version = "30.0.1"
features = ["vulkan"]
optional = true

[target.'cfg(target_os = "linux")'.dev-dependencies.alpha2-media]
version = "0.4.3"

[target.'cfg(target_os = "linux")'.dev-dependencies.alpha2-render]
version = "0.4.3"
features = ["wgpu-interop"]

[target.'cfg(target_os = "linux")'.dev-dependencies.pollster]
version = "1.0.1"

[target.'cfg(target_os = "macos")'.dependencies.alpha2-gpu]
version = "0.4.3"
features = ["wgpu-interop"]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.4"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.objc2-metal]
version = "0.3.2"
features = ["MTLTexture"]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.rsmpeg]
version = "0.18.0"
features = ["link_system_ffmpeg"]
optional = true

[target.'cfg(target_os = "macos")'.dependencies.wgpu]
version = "30.0.1"
optional = true

[target.'cfg(target_os = "macos")'.dependencies.wgpu-hal]
version = "30.0.1"
features = ["metal"]
optional = true

[target.'cfg(target_os = "macos")'.dev-dependencies.pollster]
version = "1.0.1"

[target.'cfg(target_os = "windows")'.dependencies.alpha2-gpu]
version = "0.4.3"
features = ["wgpu-interop"]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.rsmpeg]
version = "0.18.0"
features = ["link_system_ffmpeg"]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.wgpu]
version = "30.0.1"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.wgpu-hal]
version = "30.0.1"
features = ["dx12"]
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_Graphics_Direct3D12",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Dxgi_Common",
]
optional = true

[target.'cfg(target_os = "windows")'.dev-dependencies.pollster]
version = "1.0.1"

[lints.clippy]
undocumented_unsafe_blocks = "warn"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "deny"