# 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 = "2021"
rust-version = "1.81"
name = "mpeg-ps"
version = "0.1.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 = "MPEG-1/2 Program Stream parser — pack header, system header, program stream map (ISO/IEC 13818-1 §2.5)."
readme = "README.md"
keywords = [
    "mpeg",
    "program-stream",
    "mpeg-ps",
    "vob",
    "demux",
]
categories = [
    "parser-implementations",
    "multimedia",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fishloa/rust-dvb"

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

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

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

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

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

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

[dependencies.dvb-common]
version = "7.4"
default-features = false

[dependencies.dvb-pes]
version = "0.1"
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"
