rawbin
Minimal, pure-Rust bincode-like serializer/deserializer used by the pacm project. This crate provides a small, focused implementation that supports the subset of serde types required by pacm's lockfile handling.
Features
- Pure Rust implementation (depends only on
serde) - Two length-encoding modes: fixed-width (standard) and varint (legacy)
- Configurable limits and trailing-bytes checks
- Minimal
bincode1::config::DefaultOptionscompatibility helpers
Quick Start
Add the crate to your Cargo.toml:
[]
= "1"
Example usage (decoding):
use config;
use decode_from_slice;
let data: & = &; // wire-format bytes
let cfg = standard.16 * 1024 * 1024}>;
let = .expect;
Development
- Build:
cargo build - Test:
cargo test - Run CI locally with
actor use GitHub Actions
License
This project is dual-licensed under MIT OR Apache-2.0. See the LICENSE-MIT and LICENSE-APACHE files in this repository.
Contributing
Please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before contributing.