Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. lmdb-rs

lmdb-rs

MITRust0.5.0

Rust bindings for the Lightning Memory-Mapped Database (LMDB), providing safe and idiomatic access.

GitHubGitHub
113 stars46 forks0 contributors

What is lmdb-rs?

lmdb-rs is a Rust library that provides safe, idiomatic bindings to LMDB (Lightning Memory-Mapped Database), a high-performance embedded key-value store. It enables Rust developers to leverage LMDB's speed and reliability while maintaining Rust's safety guarantees and zero-cost abstractions.

Target Audience

Rust developers building applications that require embedded, high-performance key-value storage with ACID compliance, such as database engines, caching systems, or data-intensive services.

Value Proposition

Developers choose lmdb-rs over direct LMDB C API usage because it wraps the C API in a safe Rust interface that prevents common errors like memory leaks and data races, while offering idiomatic patterns and cross-platform compatibility.

Overview

Rust bindings for LMDB

Use Cases

Best For

  • Building embedded database engines in Rust that require ACID-compliant transactions.
  • Implementing high-performance caching layers with memory-mapped I/O for minimal overhead.
  • Developing data-intensive services in Rust that need zero-copy data retrieval for efficiency.
  • Creating cross-platform applications (Linux, macOS, Windows) that rely on a reliable key-value store.
  • Migrating existing LMDB-based projects to Rust while maintaining safety and performance.
  • Leveraging LMDB's speed and reliability in Rust without sacrificing memory safety guarantees.

Not Ideal For

  • Systems requiring distributed database access with horizontal scalability, as LMDB is embedded and single-node.
  • Applications needing complex querying like SQL joins or advanced indexing beyond simple key-value operations.
  • Teams looking for extensive, beginner-friendly documentation and community-driven examples out of the box.

Pros & Cons

Pros

Safe Rust Wrapper

Provides a safe, idiomatic interface that wraps LMDB's C API to prevent memory leaks and data races, as highlighted in the key features.

High Performance

Leverages LMDB's memory-mapped I/O and zero-copy operations for efficient data access, minimizing overhead and ensuring speed.

ACID Transactions

Supports ACID-compliant transactions for data integrity, crucial for reliable embedded storage in Rust applications.

Cross-Platform Compatibility

Works on Linux, macOS, and Windows, enabling versatile deployment across multiple operating systems.

Cons

Complex Build Setup

Requires initializing git submodules and building the C library, adding steps compared to pure Rust crates, as noted in the BUILDING section.

Limited High-Level Features

Focuses on low-level bindings, so developers must handle LMDB-specific details, lacking abstractions for common patterns found in more integrated databases.

Sparse Documentation

Relies on generated documentation with minimal examples in the README, which may be insufficient for newcomers to LMDB or Rust.

Frequently Asked Questions

Quick Stats

Stars113
Forks46
Contributors0
Open Issues10
Last commit3 years ago
CreatedSince 2014

Tags

#database#storage#no-sql#key-value-store#embedded-database#safe-api#transactional#rust

Built With

C
Cargo
L
LMDB
R
Rust

Included in

Rust56.6k
Auto-fetched 6 hours ago

Related Projects

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/

Stars34,431
Forks2,651
Last commit8 hours ago
SurrealDBSurrealDB

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

Stars32,995
Forks1,357
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.

Stars31,833
Forks1,422
Last commit8 hours ago
TursoTurso

A SQL database in Rust: SQLite-compatible, now also speaking Postgres (experimental). The LLVM of databases.

Stars24,203
Forks1,317
Last commit7 hours 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