#serialization #serde #data #encoding #binary

bakery

Deserialize binary objects from structured text data files

4 releases

0.1.3 Nov 27, 2021
0.1.2 Nov 21, 2021
0.1.1 Nov 20, 2021
0.1.0 Oct 24, 2021

#598 in Encoding

Download history 12/week @ 2022-03-13 12/week @ 2022-03-20 1/week @ 2022-03-27 4/week @ 2022-04-03 1/week @ 2022-04-17 4/week @ 2022-04-24 12/week @ 2022-05-01 27/week @ 2022-05-08 68/week @ 2022-05-15 17/week @ 2022-05-22 29/week @ 2022-05-29 25/week @ 2022-06-05 2/week @ 2022-06-19

60 downloads per month

MIT/Apache

88KB
2K SLoC

Bakery

Test Status Crate API

A Rust library to deserialize binary objects from structured text data files.

Basic example

use bakery::load_from_string;
use bakery_derive::Recipe;
use serde::Deserialize;

#[derive(Recipe, Deserialize)]
struct GameConfig {
    width: u32,
    height: u32,
    fullscreen: bool
}

let config: GameConfig = load_from_string("width: 1024, height: 768, fullscreen: true");

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~3MB
~66K SLoC