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

#4 in #storage-engine

Download history 13142/week @ 2023-10-17 11559/week @ 2023-10-24 11532/week @ 2023-10-31 10963/week @ 2023-11-07 10571/week @ 2023-11-14 10557/week @ 2023-11-21 10434/week @ 2023-11-28 8151/week @ 2023-12-05 7742/week @ 2023-12-12 5221/week @ 2023-12-19 2879/week @ 2023-12-26 4579/week @ 2024-01-02 4340/week @ 2024-01-09 6205/week @ 2024-01-16 5148/week @ 2024-01-23 5403/week @ 2024-01-30

21,835 downloads per month
Used in 31 crates (12 directly)

Apache-2.0

99KB
2K SLoC

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

~140–395KB