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

#1418 in Database interfaces

Download history 4305/week @ 2024-12-09 3468/week @ 2024-12-16 1560/week @ 2024-12-23 2336/week @ 2024-12-30 3649/week @ 2025-01-06 3691/week @ 2025-01-13 3733/week @ 2025-01-20 4068/week @ 2025-01-27 4425/week @ 2025-02-03 3734/week @ 2025-02-10 3515/week @ 2025-02-17 4929/week @ 2025-02-24 6879/week @ 2025-03-03 9797/week @ 2025-03-10 9089/week @ 2025-03-17 9221/week @ 2025-03-24

35,149 downloads per month
Used in 67 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

~185–560KB
~11K SLoC