Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. rust-rocksdb

rust-rocksdb

Apache-2.0Rustv0.24.0

A Rust wrapper for Facebook's RocksDB embedded key-value storage engine.

GitHubGitHub
2.2k stars862 forks0 contributors

What is rust-rocksdb?

rust-rocksdb is a Rust wrapper library for Facebook's RocksDB, a persistent key-value store optimized for fast storage. It provides safe, idiomatic Rust bindings to RocksDB's C++ API, allowing Rust applications to leverage RocksDB's high performance, reliability, and feature set while maintaining Rust's memory safety guarantees.

Target Audience

Rust developers who need embedded database storage for applications requiring high write throughput, low-latency reads, or advanced features like column families and transactions.

Value Proposition

Developers choose rust-rocksdb because it provides the full power of RocksDB with Rust's safety guarantees, offers flexible configuration through Cargo features, and maintains close compatibility with upstream RocksDB while providing an idiomatic Rust API.

Overview

rust wrapper for rocksdb

Use Cases

Best For

  • Embedding a high-performance key-value store in Rust applications
  • Building Rust database drivers or storage layers
  • Applications requiring column family isolation for multi-tenant data
  • Scenarios needing configurable compression algorithms for storage optimization
  • Projects that require concurrent modification of database schemas across threads
  • Systems where link-time optimization is needed for maximum performance

Not Ideal For

  • Projects prioritizing simple setup with minimal dependencies, as rust-rocksdb requires Clang/LLVM and submodule management
  • Teams seeking pure-Rust embedded databases without C++ bindings for easier cross-compilation or security
  • Lightweight or serverless environments where compilation overhead and linking complexity are prohibitive

Pros & Cons

Pros

Comprehensive API Coverage

Exposes nearly all RocksDB functionality, including column families, transactions, and backups, providing full access to advanced features through an idiomatic Rust interface.

Configurable Compression

Supports Snappy, LZ4, Zstd, Zlib, and Bzip2 via optional crate features, allowing developers to optimize storage and reduce binary size based on specific needs.

Thread-Safe Column Families

Offers a multi-threaded-cf feature for safe concurrent creation and dropping of column families across threads, addressing RocksDB's native limitations in Rust.

Flexible Linking Options

Provides features for static and dynamic linking, with specific support for Windows runtime libraries and Alpine Linux compatibility, enhancing cross-platform deployment.

Cons

Steep Compilation Requirements

Requires Clang and LLVM, and building from source involves managing submodules, which can be a barrier for teams with limited infrastructure or in constrained environments.

Complex Feature Configuration

Multiple crate features for compression and linking, including mutually exclusive options like bindgen-static and bindgen-runtime, add complexity and risk of misconfiguration.

Potential Performance Overhead

The Rust wrapper layer might introduce minimal overhead compared to direct C++ usage, though this is often negligible for most applications but could matter in latency-critical scenarios.

Frequently Asked Questions

Quick Stats

Stars2,155
Forks862
Contributors0
Open Issues162
Last commit5 days ago
CreatedSince 2014

Tags

#database#rocksdb#concurrent#ffi#storage-engine#key-value-store#embedded-database#rust-bindings#compression#rust#performance

Built With

L
LLVM
C
Clang
b
bindgen
R
Rust
C
C++

Included in

Rust56.6k
Auto-fetched 22 hours ago

Related Projects

SurrealDBSurrealDB

A scalable, distributed, collaborative, document-graph database, for the realtime web

Stars32,349
Forks1,279
Last commit3 days ago
QdrantQdrant

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

Stars31,902
Forks2,329
Last commit1 day ago
RustFSRustFS

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

Stars28,517
Forks1,233
Last commit23 hours ago
NeonNeon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.

Stars22,167
Forks982
Last commit14 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub