| 1 |
[](https://travis-ci.org/mozilla/lmdb-rs) |
| 2 |
[](https://ci.appveyor.com/project/mykmelez/lmdb-rs-rrsb3/branch/master) |
| 3 |
|
| 4 |
# lmdb-rs |
| 5 |
|
| 6 |
Idiomatic and safe APIs for interacting with the |
| 7 |
[Symas Lightning Memory-Mapped Database (LMDB)](http://symas.com/mdb/). |
| 8 |
|
| 9 |
This repo is a fork of [danburkert/lmdb-rs](https://github.com/danburkert/lmdb-rs) |
| 10 |
with fixes for issues encountered by [mozilla/rkv](https://github.com/mozilla/rkv). |
| 11 |
|
| 12 |
## Building from Source |
| 13 |
|
| 14 |
```bash |
| 15 |
git clone --recursive [email protected]:mozilla/lmdb-rs.git |
| 16 |
cd lmdb-rs |
| 17 |
cargo build |
| 18 |
``` |
| 19 |
|
| 20 |
## Publishing to crates.io |
| 21 |
|
| 22 |
To publish the lmdb-rkv-sys crate to crates.io: |
| 23 |
|
| 24 |
```bash |
| 25 |
git clone --recursive [email protected]:mozilla/lmdb-rs.git |
| 26 |
cd lmdb-rs/lmdb-sys |
| 27 |
# Update the version string in lmdb-sys/Cargo.toml and lmdb-sys/src/lib.rs. |
| 28 |
cargo publish |
| 29 |
git tag lmdb-rkv-sys-$VERSION # where $VERSION is the updated version string |
| 30 |
git push [email protected]:mozilla/lmdb-rs.git --tags |
| 31 |
``` |
| 32 |
|
| 33 |
To publish the lmdb-rkv crate to crates.io: |
| 34 |
|
| 35 |
```bash |
| 36 |
git clone --recursive [email protected]:mozilla/lmdb-rs.git |
| 37 |
cd lmdb-rs |
| 38 |
# Update the version string in Cargo.toml and src/lib.rs and temporarily change |
| 39 |
# the lmdb-rkv-sys dependency in Cargo.toml to the latest version on crates.io. |
| 40 |
cargo publish |
| 41 |
git tag $VERSION # where $VERSION is the updated version string |
| 42 |
git push [email protected]:mozilla/lmdb-rs.git --tags |
| 43 |
# Change the lmdb-rkv-sys dependency in Cargo.toml back to a path dependency |
| 44 |
# on the ./lmdb-sys directory. |
| 45 |
``` |
| 46 |
|
| 47 |
## Features |
| 48 |
|
| 49 |
* [x] lmdb-sys. |
| 50 |
* [x] Cursors. |
| 51 |
* [x] Zero-copy put API. |
| 52 |
* [x] Nested transactions. |
| 53 |
* [x] Database statistics. |