[package]
name = "cobs_codec_rs"
version = "1.3.0"
edition = "2024"
rust-version = "1.85"
description = "Consistent Overhead Byte Stuffing (COBS) and COBS/R codec: no_std, zero-dependency, for zero-free framing of serial and packet byte streams."
authors = ["Alexander Salas Bastidas <ajsb85@firechip.dev>"]
license = "MIT"
repository = "https://github.com/firechip/cobs_codec_rs"
homepage = "https://firechip.dev"
documentation = "https://docs.rs/cobs_codec_rs"
readme = "README.md"
keywords = ["cobs", "serial", "framing", "no-std", "embedded"]
categories = ["encoding", "embedded", "no-std"]
exclude = ["/fuzz"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--html-in-header", "docs/katex-header.html"]
[dependencies]
serde = { version = "1", optional = true, default-features = false, features = ["derive"] }
defmt = { version = "1", optional = true }
[features]
default = ["std"]
alloc = []
std = ["alloc"]
serde = ["dep:serde"]
defmt = ["dep:defmt"]
[dev-dependencies]
prost = "0.14"
serde_json = "1"
criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] }
[[bench]]
name = "throughput"
harness = false
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }