# 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.86"
name = "mp4-emsg"
version = "0.2.0"
authors = ["Alex Fishlock <alex.fishlock@racingjag.com>"]
build = false
exclude = [
    "docs/**",
    "tests/fixtures/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ISO BMFF / DASH Event Message Box (emsg, ISO/IEC 23009-1) — parser + serializer, no_std."
readme = "README.md"
keywords = [
    "dash",
    "emsg",
    "cmaf",
    "scte35",
    "isobmff",
]
categories = [
    "parser-implementations",
    "multimedia",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fishloa/rust-broadcast"
resolver = "2"

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

[features]
default = ["std"]
serde = ["dep:serde"]
std = [
    "broadcast-common/std",
    "thiserror/std",
]

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

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

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

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

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

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

[dependencies.broadcast-common]
version = "8"
default-features = false

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

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

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