12 unstable releases (5 breaking)

Uses old Rust 2015

0.14.0 Mar 10, 2020
0.12.3 Sep 25, 2019
0.11.4 Apr 15, 2019
0.11.3 Mar 29, 2019
0.9.0 Nov 19, 2018

#447 in Database interfaces

Download history 3790/week @ 2024-09-28 6050/week @ 2024-10-05 4222/week @ 2024-10-12 4032/week @ 2024-10-19 4389/week @ 2024-10-26 3005/week @ 2024-11-02 4506/week @ 2024-11-09 5135/week @ 2024-11-16 4140/week @ 2024-11-23 4263/week @ 2024-11-30 4301/week @ 2024-12-07 3387/week @ 2024-12-14 1757/week @ 2024-12-21 2100/week @ 2024-12-28 3546/week @ 2025-01-04 3390/week @ 2025-01-11

11,350 downloads per month
Used in 57 crates (11 directly)

Apache-2.0

535KB
13K SLoC

C 10K SLoC // 0.2% comments Rust 3.5K SLoC // 0.0% comments

Build Status Windows Build status

lmdb-rs

Idiomatic and safe APIs for interacting with the Symas Lightning Memory-Mapped Database (LMDB).

This repo is a fork of danburkert/lmdb-rs with fixes for issues encountered by mozilla/rkv.

Building from Source

git clone --recursive git@github.com:mozilla/lmdb-rs.git
cd lmdb-rs
cargo build

Publishing to crates.io

To publish the lmdb-rkv-sys crate to crates.io:

git clone --recursive git@github.com:mozilla/lmdb-rs.git
cd lmdb-rs/lmdb-sys
# Update the version string in lmdb-sys/Cargo.toml and lmdb-sys/src/lib.rs.
cargo publish
git tag lmdb-rkv-sys-$VERSION # where $VERSION is the updated version string
git push git@github.com:mozilla/lmdb-rs.git --tags

To publish the lmdb-rkv crate to crates.io:

git clone --recursive git@github.com:mozilla/lmdb-rs.git
cd lmdb-rs
# Update the version string in Cargo.toml and src/lib.rs and temporarily change
# the lmdb-rkv-sys dependency in Cargo.toml to the latest version on crates.io.
cargo publish
git tag $VERSION # where $VERSION is the updated version string
git push git@github.com:mozilla/lmdb-rs.git --tags
# Change the lmdb-rkv-sys dependency in Cargo.toml back to a path dependency
# on the ./lmdb-sys directory.

Features

  • lmdb-sys.
  • Cursors.
  • Zero-copy put API.
  • Nested transactions.
  • Database statistics.

Dependencies

~170–580KB
~13K SLoC