#serial-communication #byte #consistent #overhead #communication-channel #stuffing

no-std postcard-cobs

This is an implementation of the Consistent Overhead Byte Stuffing (COBS) algorithm. COBS is an algorithm for transforming a message into an encoding where a specific value (the "sentinel" value) is not used. This value can then be used to mark frame boundaries in a serial communication channel.

2 unstable releases

0.2.0 Aug 5, 2021
0.1.5-pre Apr 11, 2019

#1131 in Algorithms

Download history 6152/week @ 2023-11-24 4731/week @ 2023-12-01 4856/week @ 2023-12-08 5248/week @ 2023-12-15 2306/week @ 2023-12-22 3055/week @ 2023-12-29 4056/week @ 2024-01-05 4432/week @ 2024-01-12 4221/week @ 2024-01-19 5263/week @ 2024-01-26 4595/week @ 2024-02-02 4524/week @ 2024-02-09 3150/week @ 2024-02-16 4226/week @ 2024-02-23 4749/week @ 2024-03-01 2820/week @ 2024-03-08

15,715 downloads per month
Used in 66 crates (3 directly)

MIT/Apache

23KB
287 lines

postcard-cobs

⚠️ - WARNING

This crate is a fork of the cobs.rs crate, originally intended to be a temporary solution for the postcard crate. Since then, @jamesmunns has been granted ownership of the cobs.rs crate, and intends to upstream the local changes in this crate.

At that time, this crate will be marked deprecated with a point release, but will NOT be yanked.

This is an implementation of the Consistent Overhead Byte Stuffing (COBS) algorithm in Rust.

COBS is an algorithm for transforming a message into an encoding where a specific value (the "sentinel" value) is not used. This value can then be used to mark frame boundaries in a serial communication channel.

See www.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing for details.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps