548cf722c2ef2c91fab9e60194aa40ae0e03e71f
Imports CobsDecoder and cobs_encode_response from firmware's src/host/framing.rs, adjusted so the defmt::warn on encode overflow is gated on the crate's defmt feature rather than an unconditional import. The route_command helper stays in firmware — it depends on embassy channels, which have no business in a transport-agnostic crate.
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%