# 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 = "dvb-ule"
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 = "ULE (Unidirectional Lightweight Encapsulation, RFC 4326 + RFC 5163) — IP over MPEG-2 TS: SNDU encapsulation, extension-header chains, and TS-packet de-fragmentation."
readme = "README.md"
keywords = [
    "ule",
    "rfc4326",
    "mpeg-ts",
    "encapsulation",
    "broadcast",
]
categories = [
    "parser-implementations",
    "network-programming",
    "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",
    "thiserror/std",
]

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

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

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

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

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

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