mediaway-decoder 0.1.2

Hardware-accelerated video/audio decoding (OS-native backends)
# 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 = "mediaway-decoder"
version = "0.1.2"
authors = ["NyxWays"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hardware-accelerated video/audio decoding (OS-native backends)"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/nyxways/mediaway"
resolver = "2"

[features]
audio = []
default = [
    "full",
    "video",
    "audio",
]
full = [
    "video",
    "audio",
]
video = []

[lib]
name = "mediaway_decoder"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[dependencies.iso-bmff]
version = "0.1.1"

[dependencies.mediaway-common]
version = "0.1.2"

[dependencies.mediaway-sw]
version = "0.1.2"

[dependencies.smallvec]
version = "1.15"
features = ["const_generics"]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.wasm-bindgen]
version = "0.2"

[dependencies.wasm-bindgen-futures]
version = "0.4"

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.mediaway-encoder]
version = "0.1.2"
features = ["video"]

[target.'cfg(not(target_family = "wasm"))'.dependencies.vulkanalia]
version = "0.35"
features = [
    "std",
    "libloading",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "EncodedVideoChunk",
    "EncodedVideoChunkInit",
    "EncodedVideoChunkType",
    "PlaneLayout",
    "VideoDecoder",
    "VideoDecoderConfig",
    "VideoDecoderInit",
    "VideoDecoderSupport",
    "VideoFrame",
]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.cros-libva]
version = "0.0.13"

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "Win32_Foundation",
    "Win32_System_Com",
    "Win32_System_Threading",
    "Win32_Security",
    "Win32_Media_MediaFoundation",
    "Win32_Graphics_Direct3D",
    "Win32_Graphics_Direct3D11",
    "Win32_Graphics_Direct3D12",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Dxgi_Common",
]
default-features = false

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

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

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

[lints.rust]
async_fn_in_trait = "allow"
elided_lifetimes_in_paths = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_must_use = "deny"