79587f9e2230d6f510653ae6e076224013e2e379
Ten properties covering: RadioConfig roundtrip and validate/resolve determinism; no-panic on arbitrary bytes for both Command::from_bytes and RadioConfig::from_bytes; bounded-capacity for Transmit payloads (guards the heapless::Vec size); Command roundtrip via a test-only encoder (the library only decodes commands); COBS reversibility; and two streaming CobsDecoder properties (no-panic on random byte streams with random chunk boundaries, and a full encode→feed→decode roundtrip). Adds Clone to Command and Response — benign public-API expansion that unblocks proptest's Just strategy.
donglora-protocol
Wire protocol types and COBS framing for DongLoRa, shared between firmware
and host crates (client-rs, mux-rs, bridge).
no_std by default. defmt::Format derives are opt-in via the default
defmt feature. Host consumers disable default features:
donglora-protocol = { version = "0.1", default-features = false }
Status
Pre-1.0. Currently consumed by path dep; will publish to crates.io once the surface area settles.
Layout
src/lib.rs—Command,Response,RadioConfig,ErrorCode, etc.src/framing.rs—CobsDecoder+cobs_encode_responsefor USB/UART transports.tests/— proptest suite (roundtrips, bounded-capacity invariants, regional-regs, duty-cycle math).fuzz/— cargo-fuzz targets on the parser and framer.
Languages
Rust
98.6%
Just
1.4%