baimax

Crates.iobaimax
lib.rsbaimax
version0.1.0
sourcesrc
created_at2017-07-06 06:12:48.296629
updated_at2017-07-06 06:12:48.296629
descriptionType-safe BAIv2 serialization library for Rust
homepage
repositoryhttps://github.com/bb010g/baimax
max_upload_size
id22145
size2,176,554
eng (github:mobilecoinfoundation:eng)

documentation

https://docs.rs/baimax/0.1.0/baimax

README

Baymax baimax Build Status Cargo

API documentation | Changelog

Baimax is a type-safe BAIv2 deserialization library for Rust. It is currently in an alpha state, and is probably not going to be restructured majorly soon.

Baimax requires nightly Rust due to the try_from feature (tracking issue).

Compliance

The physical record length header isn't checked while parsing.

Record number checks in trailers aren't supported because I haven't figured out an efficient encoding for them in the AST yet. You'd think some bitflags would do, but any 88 Continuation record can be followed by another continuation, turning your nice set of bits to cover everything into a u8 tagging the code and every field of every record type, which is less nice.

Pull requests are welcome to increase spec compliance.

Commit count: 8

cargo fmt