Small serialization library for Rust

deltanedas 9d8e640ceb up 3 vuotta sitten
orio-derive 4c0a446f01 troll 3 vuotta sitten
src 785bdc4f6c add time io impls 3 vuotta sitten
.gitignore 574f41d36b first commit 3 vuotta sitten
Cargo.toml 9d8e640ceb up 3 vuotta sitten
LICENSE a0ef58e420 ready for publish 3 vuotta sitten
README.md a0ef58e420 ready for publish 3 vuotta sitten

README.md

Orio

Lightweight and clean alternative to serde, focusing on writing to and from Vec<u8>s.

#[derive(Io)]
struct Thingy {
	name: String,
	kind: ThingyKind,
	#[io(ignore)]
	debug: String
}

#[derive(Io)]
enum ThingyKind {
	Normal,
	Special(String)
}

let thingy = Thingy {
	name: "thing".to_owned(),
	kind: ThingyKind::Normal,	
	debug: "not written".to_owned()
}
let mut bytes = vec![];
thingy.write(&mut bytes);

Named after the cookie :)

License

MIT license