Skip to content

cobs_codec_rs 1.3.0

Choose a tag to compare

@ajsb85 ajsb85 released this 05 Jul 06:01
v1.3.0
49ec3d2

cobs_codec_rs 1.3.0

Feature + tooling release, fully backward compatible — 1.2.x code compiles unchanged. Byte-identical to the Dart, Kotlin, and Swift members of the Firechip COBS family.

✨ New features

  • COBS/R in-place decodecobsr::decode_in_place / decode_in_place_with_sentinel decode the reduced codec within the caller's buffer and return the decoded length (COBS/R never expands the data).
  • Optional serde and defmt derives on DecodeError, behind the new serde / defmt features. Both stay off by default, so the default build remains no_std and dependency-free.

🔧 Tooling & tests

  • A criterion throughput benchmark (benches/throughput.rs).
  • Fuzzing — cargo-fuzz targets plus a stable, dependency-free robustness test in ordinary CI.
  • A Protobuf + COBS framing example (examples/protobuf_cobs.rs).
  • Conformance now also checks the configurable-sentinel and decode-error vectors.

📦 Install

cobs_codec_rs = "1.3"

crates.io: https://crates.io/crates/cobs_codec_rs/1.3.0 · docs.rs: https://docs.rs/cobs_codec_rs/1.3.0

The attached cobs_codec_rs-1.3.0.crate is the exact published source distribution (from crates.io).