$ cobs

v0.5.1

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.

Downloads: 22.1M
Recent: 5.5M
Versions: 12
Updated: March 3, 2026

Latest Update Summary

Crate

Name: cobs New version: 0.5.0 Release date: 2025-10-21T10:41:23Z

Crate readme

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

Long description 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. cobs supports various runtime environments and is also suitable for no_std environments.

Features • std: Enables functionality relying on the standard library and also activates the alloc feature. Currently only adds std::error::Error support for the library error types. • alloc: Enables features which operate on containers like alloc::vec::Vec. • defmt: Adds defmt::Format derives on some data structures and error types. • serde: Adds serde derives on some data structures and error types.

Code Examples

Linkshttps://crates.io/crates/cobshttps://docs.rs/cobs

https://api.github.com/repos/jamesmunns/cobs.rs/releases/255965083

Release info

Release version:

Release description

Code Examples

Patch update: 0.5.0 → 0.5.1

$ DOWNLOADS TREND

14.1M22.1M

$ VERSION HISTORY

v0.5.1March 3, 2026
v0.5.0October 21, 2025
v0.4.0June 21, 2025

$ LINKS

$ INSTALL

cargo add cobs

Or add to Cargo.toml: cobs = "0.5.1"