# 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 = "mpeg-pes"
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 = "PES (Packetized Elementary Stream) depacketization + PTS/DTS — ISO/IEC 13818-1 §2.4.3."
readme = "README.md"
keywords = [
    "pes",
    "mpeg-ts",
    "pts",
    "broadcast",
    "mpeg",
]
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 = "mpeg_pes"
path = "src/lib.rs"

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

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

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

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

[[test]]
name = "fixture_pes_header"
path = "tests/fixture_pes_header.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"
