prost-sled

Crates.ioprost-sled
lib.rsprost-sled
version0.0.5
created_at2021-01-03 02:51:26.873791+00
updated_at2021-04-23 12:27:11.602576+00
descriptionIntegration layer between prost and sled.
homepagehttps://git.sr.ht/~nds/prost-sled
repositoryhttps://git.sr.ht/~nds/prost-sled
max_upload_size
id330846
size32,069
Nick Spain (nick96)

documentation

README

prost-sled: An integration layer between prost and sled

prost-sled makes it easy to use sled to store structure data (protobufs) encoded using prost. It just abstracts away the boilerplate of having to encode and decode them.

Usage

prost-sled provides a wrapper around sled::Db: ProtoDb. This provides methods of the same name as those on sled::Db except they work using structs that implement prost::Message (the trait used by prost for protobuf messages).

The From and Into traits are implemented both ways between sled::Db and ProtoDb so it's really easy to convert between the two as needed.

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.

Commit count: 0

cargo fmt