#serialization #snapshot #version #persistent-storage #deserialize #firecracker #tolerant

dbs-snapshot

A version tolerant state serialization and deserialization library

2 stable releases

1.5.1 Dec 19, 2023
1.5.0 Oct 18, 2023

#1221 in Encoding

Download history 148/week @ 2024-07-22 86/week @ 2024-07-29 32/week @ 2024-08-05 26/week @ 2024-08-12 43/week @ 2024-08-19 69/week @ 2024-08-26 42/week @ 2024-09-02 31/week @ 2024-09-09 63/week @ 2024-09-16 102/week @ 2024-09-23 22/week @ 2024-09-30 49/week @ 2024-10-07 205/week @ 2024-10-14 53/week @ 2024-10-21 39/week @ 2024-10-28 36/week @ 2024-11-04

343 downloads per month
Used in fuse-backend-rs

Apache-2.0

52KB
1K SLoC

Python 619 SLoC // 0.1% comments Rust 446 SLoC // 0.1% comments

dbs-snapshot

dbs-snapshot is a fork of Firecracker microvmm's snapshot crate. It was done so because the Firecracker maintainers have no plan to publish the crate on crates.io.

dbs-snapshot provides a version tolerant serialization and deserialization facilities and implements a persistent storage format for saving rust struct states. It can form a basis of many useful functionalities such as VM snapshot for rust-based VMMs, as well as user space program live upgrade for other projects like Nydus.

Disclaimer

Please note that the crate is released from v1.5.0 because that is the initial Firecracker release version the crate was taken from.

We will use sematic versioning. The API backward-compatibilites will always be reserved across patch version updates. The backward-compatibilities across minor version updates will be preserved in a best effort manner. Whenever API backward-compatibility is broken on purpose, we will bump the major version.

Dependencies

~1–1.6MB
~35K SLoC