byten
A binary codec library for efficient encoding and decoding of Rust data structures.
⚠️ Early Development: This library is in active development and the API may change.
Features
- 🚀 Derive macros for automatic codec implementation
- 🔢 Primitive types with custom byte ordering (BE/LE)
- 📦 Variable-length encoding support
- 🎯 Type-safe encoding and decoding
- 🔧 Flexible attribute-based customization
Quick Start
Add to your Cargo.toml:
[]
= "0.0.1"
Basic Usage
use ;
Advanced Example
use ;
Features Flags
derive(default): Enable derive macros forEncode,Decode, andMeasureanyhow(default): Integration with theanyhowerror handling crate
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! This project is in early development.