rkyv (archive) is a zero-copy deserialization framework for Rust
```rust use rkyv::{ archived_root, ser::{serializers::AllocSerializer, Serializer}, Archive, Deserialize, Infallible, Serialize, };
struct Test {
int: u8,
string: String,
option: Option
let value = Test { int: 42, string: "hello world".to_string(), option: Some(vec![1, 2, 3, 4]), };
let mut serializer = AllocSerializer::<256>::default(); serializer.serializevalue(&value).unwrap(); let bytes = serializer.intoserializer().into_inner();
let archived = unsafe { archivedroot::
let deserialized: Test = archived.deserialize(&mut Infallible).unwrap() assert_eq!(deserialized, value); ```
Thanks to all the sponsors that keep development sustainable. Special thanks to the following sponsors for going above and beyond supporting rkyv: