[package]
edition = "2024"
rust-version = "1.95"
name = "tinyklv"
version = "0.1.1"
authors = ["Arpad Voros <arpadav@gmail.com>"]
build = false
exclude = [
"TODO.md",
"book/",
"examples",
"tests",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The simplest Key-Length-Value (KLV) framework in Rust"
homepage = "https://arpadvoros.com/tinyklv"
documentation = "https://docs.rs/tinyklv"
readme = "README.md"
keywords = [
"decode",
"encode",
"klv",
"parsing",
"tlv",
]
categories = [
"development-tools",
"encoding",
"parsing",
]
license = "MIT"
repository = "https://github.com/arpadav/tinyklv"
[features]
default = []
full = [
"ascii",
"chrono",
]
tracing = [
"dep:tracing",
"tinyklv-impl/tracing",
]
[lib]
name = "tinyklv"
path = "src/lib.rs"
[dependencies.ascii]
version = "1.1.0"
optional = true
[dependencies.chrono]
version = "0.4.44"
optional = true
[dependencies.memchr]
version = "2.8.0"
[dependencies.num-traits]
version = "0.2.19"
[dependencies.paste]
version = "1.0.15"
[dependencies.tinyklv-impl]
version = "0.1.0"
[dependencies.tracing]
version = "0.1.44"
optional = true
[dependencies.winnow]
version = "1.0.2"
features = [
"parser",
"simd",
]
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.rand]
version = "^0.10"
[dev-dependencies.rand_distr]
version = "^0.6"
[dev-dependencies.tokio]
version = "^1.52"
features = [
"macros",
"rt-multi-thread",
"sync",
]
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true