encdec

Crates.ioencdec
lib.rsencdec
version0.9.0
sourcesrc
created_at2022-09-07 23:58:06.624748
updated_at2023-05-10 03:56:19.316117
descriptionbinary object encoding / decoding helpers
homepage
repositoryhttps://github.com/ryankurte/rust-encdec
max_upload_size
id660704
size16,524
ryan (ryankurte)

documentation

README

encdec

This crate provides common (and no_std compatible) [Encode] and [Decode] traits for describing binary encode/decode-able objects in embedded contexts, as well as derive macros to automagically implement these over objects, and basic (at this time little-endian only) implementations for primitive types.

This is intended for use where you need to binary encode objects to suit a particular protocol or specification, because who hasn't had enough of creating per-project encoding traits, and for everything else there are neater solutions like prost for protobufs or serde and postcard if all consumers are using rust.

Status

GitHub tag Build Status Crates.io Docs.rs

Commit count: 60

cargo fmt