rawbin 1.0.0

Minimal, pure-Rust bincode-like serializer/deserializer used by pacm.
Documentation
  • Coverage
  • 16.13%
    5 out of 31 items documented0 out of 16 items with examples
  • Size
  • Source code size: 46.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.57 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • pacmpkg/rawbin
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • builtbyjonas

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::DefaultOptions compatibility helpers

Quick Start

Add the crate to your Cargo.toml:

[dependencies]

rawbin = "1"

Example usage (decoding):

use rawbin::config;
use rawbin::serde::decode_from_slice;

let data: &[u8] = &[]; // wire-format bytes
let cfg = config::standard().with_limit::<{16 * 1024 * 1024}>();
let (value, _read) = decode_from_slice::<YourType>(data, cfg).expect("decode");

Development

  • Build: cargo build
  • Test: cargo test
  • Run CI locally with act or 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.