[package]
name = "mpeg2ts-reader"
version = "0.18.2"
authors = ["David Holroyd <dave@badgers-in-foil.co.uk>"]
description = "Parser for MPEG Transport Stream data"
repository = "https://github.com/dholroyd/mpeg2ts-reader"
license = "MIT/Apache-2.0"
categories = [ "multimedia::video", "parser-implementations" ]
keywords = [ "mpegts", "ISO-13818-1", "H-222-0" ]
readme = "README.md"
edition = "2021"

exclude = [ "testsrc.ts" ]

[dependencies]
fixedbitset = "0.5.0"
encoding_rs = "0.8"
log = "0.4"
smptera-format-identifiers-rust = "0.4.0"

[dev-dependencies]
assert_matches = "1.5.0"
bitstream-io = "2.2"
criterion = "0.5.1"
hex-literal = "0.2.1"
hex-slice = "0.1.4"
env_logger = "0.11.2"
iai-callgrind = "0.14.0"

[[bench]]
name = "bench"
harness = false

[[bench]]
name = "ci_bench"
harness = false

[profile.bench]
# for profiling,
debug = true

[lints.rust]
# per https://github.com/rust-fuzz/cargo-fuzz/issues/372
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
