Vulnerabilities | ||||
---|---|---|---|---|
Version | Suggest | Low | Medium | High |
0.1.0-alpha.3 | 0 | 0 | 0 | 0 |
0.1.0-alpha.2 | 0 | 0 | 0 | 0 |
0.1.0-alpha.1 | 0 | 0 | 0 | 0 |
0.1.0-alpha.3 - this version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0store
is a dead simple binary (de)serializer utilizing the
Serialize
and Deserialize
traits
provided by serde
.
It is fully compatible with std
, no_std
, and no_std
+ alloc
.
To use store
, add this to your Cargo.toml:
[dependencies]
store = "0.1.0-alpha.3"
store
can dump types that implement Serialize
into
mutable byte buffers.
use serde_derive::Serialize;
use store::Dump;
#[derive(Serialize)]
struct Foo(u32);
fn main() -> store::Result<()> {
let mut buf = [0; 4];
let foo = Foo(42);
foo.dump_into_bytes(&mut buf[..])?;
Ok(())
}
store
will also decode structures that implement
Deserialize
from byte buffers.
use serde_derive::Deserialize;
use store::Load;
#[derive(Deserialize)]
struct Bar(u32);
fn main() -> store::Result<()> {
let buf = [0; 4];
let bar = Bar::load_from_bytes(&buf[..])?;
Ok(())
}
This project is dual-licensed under either of
at your option.
If you would like to contribute to store
, experience any issues, or even have
features you would like to see implemented, new issues and pull
requests are welcomed.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in store
by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.