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.
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.
Licensed under either of
at your option.
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.