15 releases

Uses old Rust 2015

0.11.2 Feb 4, 2022
0.11.0 Mar 10, 2020
0.10.0 Dec 6, 2019
0.9.6 Oct 27, 2019
0.8.2 Feb 6, 2019

#2114 in Database interfaces

Download history 9088/week @ 2024-03-14 7757/week @ 2024-03-21 7055/week @ 2024-03-28 8737/week @ 2024-04-04 8543/week @ 2024-04-11 8437/week @ 2024-04-18 7265/week @ 2024-04-25 11098/week @ 2024-05-02 9440/week @ 2024-05-09 8159/week @ 2024-05-16 7570/week @ 2024-05-23 7750/week @ 2024-05-30 6959/week @ 2024-06-06 6808/week @ 2024-06-13 5279/week @ 2024-06-20 4349/week @ 2024-06-27

24,596 downloads per month
Used in 37 crates (4 directly)

Apache-2.0

435KB
11K SLoC

C 10K SLoC // 0.2% comments Rust 1.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

~0.4–350KB