Safe Rust bindings for LMDB with encryption at rest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Niko 4460901b22 new revision of lmdb lib, with 32B MAC reserved 2 years ago
benches Use a simple lib name for lmdb-rkv-sys, mirroring what lmdb-rkv does 5 years ago
lmdb-sys new revision of lmdb lib, with 32B MAC reserved 2 years ago
src passing encryption key from builder to Lmdb lib, with proper memory management 2 years ago
.appveyor.yml Display verbose cargo version in logs 5 years ago
.gitignore gitignore 2 years ago
.gitmodules switch to p2pcollab/lmdb.git for lmdb-sys 2 years ago
.rustfmt.toml Enable rustfmt and copy config from the rkv project 5 years ago
.travis.yml Temporarily work around CI failure on linux nightlies 5 years ago
Cargo.toml renaming to lmdb-crypto-rs 2 years ago
LICENSE Initial commit 10 years ago
README.md renaming to lmdb-crypto-rs 2 years ago
azure-pipelines-template.yml Display verbose cargo version in logs 5 years ago
azure-pipelines.yml Format yml files 5 years ago

README.md

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 mozilla/lmdb-rs that enables encryption of data at rest in LMDB. lmdb-rs is itself 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-crypto-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-crypto-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-crypto-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-crypto-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.