[package]
edition = "2024"
rust-version = "1.95"
name = "tinyklv"
version = "0.1.2"
authors = ["Arpad Voros <arpadav@gmail.com>"]
build = false
exclude = [
"TODO.md",
"book/",
"examples",
"tests",
"benches",
]
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]
ascii = ["winnow/ascii"]
default = []
full = [
"ascii",
"chrono",
]
tracing = [
"dep:tracing",
"tinyklv-impl/tracing",
]
[lib]
name = "tinyklv"
path = "src/lib.rs"
[dependencies.chrono]
version = "0.4.44"
optional = true
[dependencies.memchr]
version = "2.8.0"
[dependencies.num-traits]
version = "0.2.19"
[dependencies.pastey]
version = "0.2.3"
[dependencies.tinyklv-impl]
version = "0.1.2"
[dependencies.tracing]
version = "0.1.44"
optional = true
[dependencies.winnow]
version = "1.0.2"
features = [
"binary",
"parser",
"simd",
]
[dev-dependencies.criterion]
version = "^0.8"
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.rand]
version = "^0.10"
[dev-dependencies.rand_distr]
version = "^0.6"
[dev-dependencies.serde]
version = "^1"
features = ["derive"]
[dev-dependencies.serde_bytes]
version = "^0.11"
[dev-dependencies.serde_klv]
version = "^0.3"
[dev-dependencies.tlv_parser]
version = "^0.10"
[dev-dependencies.tokio]
version = "^1.52"
features = [
"macros",
"rt-multi-thread",
"sync",
]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
double_must_use = "allow"
float_cmp = "allow"
inline_always = "allow"
into_iter_without_iter = "allow"
iter_not_returning_iterator = "allow"
manual_let_else = "allow"
many_single_char_names = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_for_each = "allow"
similar_names = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unreadable_literal = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "deny"
priority = -1
[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