4 releases

0.2.1 Apr 24, 2024
0.2.0 Apr 4, 2024
0.1.2 Mar 18, 2024
0.1.1 Feb 10, 2024
0.1.0 Jan 16, 2024

#410 in Data structures

Download history 159/week @ 2024-02-05 323/week @ 2024-02-12 458/week @ 2024-02-19 438/week @ 2024-02-26 425/week @ 2024-03-04 511/week @ 2024-03-11 868/week @ 2024-03-18 564/week @ 2024-03-25 653/week @ 2024-04-01 591/week @ 2024-04-08 743/week @ 2024-04-15 705/week @ 2024-04-22 499/week @ 2024-04-29 538/week @ 2024-05-06

2,545 downloads per month
Used in 9 crates (via surrealkv)

Apache-2.0

785KB
3K SLoC

vart: Versioned Adaptive Radix Trie for Rust

vart is a Rust library that implements an immutable Versioned Adaptive Radix Trie data structure. It allows you to efficiently manage key-value pairs with multiple versions and timestamps, making it a useful datastructure for applications that require tracking changes over time and enabling snapshot reads. With vart, you can handle versioned data, insert, delete, and query key-value items based on specific versions.

License

Features

  • Immutable: Built on an immutable radix trie data structure employing copy-on-write semantics. This design allows for the storage and retrieval of multiple versions of the same key.

  • Version Tracking: Track modifications to the key and manage multiple versions of the same key within the data structure.

  • Snapshot Reads: Capture the current state of the trie and create immutable snapshots, allowing for point-in-time views of the data.

Dependencies

~2MB
~25K SLoC