mediadecode 0.2.0

Generic, no_std-friendly type-and-trait spine for media decoders (FFmpeg, WebCodecs, R3D, BRAW, ARRIRAW, X-OCN, ProRes RAW, Canon Cinema RAW Light).
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.95.0"
name = "mediadecode"
version = "0.2.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic, no_std-friendly type-and-trait spine for media decoders (FFmpeg, WebCodecs, R3D, BRAW, ARRIRAW, X-OCN, ProRes RAW, Canon Cinema RAW Light)."
homepage = "https://github.com/findit-ai/mediadecode"
documentation = "https://docs.rs/mediadecode"
readme = "README.md"
keywords = [
    "media",
    "decoder",
    "video",
    "audio",
    "no-std",
]
categories = [
    "multimedia",
    "multimedia::video",
    "multimedia::audio",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/findit-ai/mediadecode"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = ["smol_str"]
arbitrary = [
    "dep:arbitrary",
    "mediatime/arbitrary",
    "smol_str?/arbitrary",
]
default = ["std"]
future = ["dep:trait-variant"]
quickcheck = [
    "dep:quickcheck",
    "mediatime/quickcheck",
]
serde = [
    "dep:serde",
    "mediatime/serde",
    "bitflags/serde",
]
std = [
    "mediatime/default",
    "smol_str/default",
]

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

[[example]]
name = "foo"
path = "examples/foo.rs"

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

[[bench]]
name = "foo"
path = "benches/foo.rs"
harness = false

[dependencies.arbitrary]
version = "1"
optional = true
default-features = false

[dependencies.bitflags]
version = "2"
default-features = false

[dependencies.derive_more]
version = "2"
features = [
    "display",
    "is_variant",
]
default-features = false

[dependencies.mediatime]
version = "0.1"
default-features = false

[dependencies.quickcheck]
version = "1"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.smol_str]
version = "0.3"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.trait-variant]
version = "0.1"
optional = true

[dependencies.videoframe]
version = "0.2"
features = ["frame"]
default-features = false

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

[dev-dependencies.tempfile]
version = "3"

[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(all_tests)",
    "cfg(tarpaulin)",
    "cfg(web_sys_unstable_apis)",
]