48 releases (11 stable)

Uses new Rust 2024

5.0.1 Sep 22, 2025
4.0.4 Jul 26, 2025
3.2.0 Oct 19, 2024
2.0.0 Oct 7, 2024
0.45.1 Jun 24, 2022

#43 in #kv

Download history 8/week @ 2025-07-02 249/week @ 2025-07-16 213/week @ 2025-07-23 71/week @ 2025-07-30 145/week @ 2025-08-06 120/week @ 2025-08-13 59/week @ 2025-08-20 185/week @ 2025-08-27 90/week @ 2025-09-03 39/week @ 2025-09-10 125/week @ 2025-09-17 43/week @ 2025-09-24 44/week @ 2025-10-01 12/week @ 2025-10-08 6/week @ 2025-10-15

141 downloads per month
Used in 9 crates (via vsdb)

GPL-3.0 license

67KB
1.5K SLoC

vsdb_core

Crates.io Docs.rs License Rust

vsdb_core provides the low-level building blocks for vsdb.

This crate contains the foundational components of vsdb, including:

  • Storage Abstractions: An Engine trait that abstracts over key-value storage backends.
  • Raw Data Structures: Untyped, high-performance data structures like MapxRaw that operate on raw bytes.
  • Utilities: Shared functions for environment management, such as setting the database directory.

Most users should use the vsdb crate instead, which provides high-level, typed APIs.

Installation

Add this to your Cargo.toml:

[dependencies]
vsdb_core = "5.0.1"

Features

For detailed API examples, see API Examples.

  • parity_backend: (Default) Use parity-db as the backend database. Pure Rust implementation.
  • rocks_backend: Use rocksdb as the backend database. C++ implementation.
  • compress: Enable data compression in the backend database.

Known Issues

  • The len() of a data structure is not always guaranteed to be absolutely reliable and should be treated as a hint. This is because some operations may not update the length atomically in real-time for performance reasons.

License

This project is licensed under the GPL-3.0 license.

Dependencies

~1.8–8MB
~154K SLoC