# 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 = "mediaframe"
version = "0.1.8"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A common media-stream descriptor vocabulary (pixel-format, colour, and frame metadata for video — audio/subtitle to follow) for media processing pipelines."
homepage = "https://github.com/Findit-AI/mediaframe"
documentation = "https://docs.rs/mediaframe"
readme = "README.md"
keywords = [
    "media",
    "video",
    "pixel-format",
    "color",
]
categories = [
    "multimedia",
    "multimedia::video",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Findit-AI/mediaframe"

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

[features]
alloc = [
    "dep:smol_str",
    "dep:icu_locale_core",
    "icu_locale_core/alloc",
    "dep:bytes",
    "derive_more/unwrap",
    "derive_more/try_unwrap",
]
arbitrary = [
    "std",
    "dep:arbitrary",
]
bayer = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
buffa = [
    "dep:buffa",
    "mediatime/buffa",
    "alloc",
]
default = ["std"]
frame = [
    "yuv-planar",
    "yuv-semi-planar",
    "yuva",
    "yuv-packed",
    "yuv-444-packed",
    "y2xx",
    "v210",
    "rgb",
    "rgb-float",
    "rgb-legacy",
    "gbr",
    "gray",
    "bayer",
    "xyz",
    "mono",
]
gbr = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
    "dep:half",
]
gray = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
    "dep:half",
]
mono = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
quickcheck = [
    "std",
    "dep:quickcheck",
    "dep:quickcheck-richderive",
]
rgb = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
rgb-float = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
    "dep:half",
]
rgb-legacy = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
serde = [
    "dep:serde",
    "smol_str?/serde",
    "bytes?/serde",
]
std = [
    "alloc",
    "thiserror/default",
    "smol_str?/std",
    "bytes?/std",
]
v210 = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
xyz = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
y2xx = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-444-packed = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-packed = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-planar = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuv-semi-planar = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]
yuva = [
    "derive_more/try_unwrap",
    "derive_more/unwrap",
]

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

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

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

[dependencies.buffa]
version = "0.8"
optional = true
default-features = false

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

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

[dependencies.half]
version = "2"
optional = true
default-features = false

[dependencies.icu_locale_core]
version = "2"
optional = true
default-features = false

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

[dependencies.quickcheck]
version = "1"
optional = true

[dependencies.quickcheck-richderive]
version = "0.3"
optional = true

[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

[dev-dependencies.postcard]
version = "1"
features = ["alloc"]
default-features = false

[dev-dependencies.serde_json]
version = "1"

[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)",
]

[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
overflow-checks = false
incremental = false
