dfinity-lab/lmdb-rs
Basename is uppercase README.mdReferences curl flags and HTTP URL
SHA-2562e4d1fd8cfc9324de20a30a5cf5eb6c95d082f86f98f82e7bdb7a0fb9c6bd1b9
Evidence
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
6Idiomatic and safe APIs for interacting with the
7[Symas Lightning Memory-Mapped Database (LMDB)](http://symas.com/mdb/).
8
9This repo is a fork of [danburkert/lmdb-rs](https://github.com/danburkert/lmdb-rs)
10with fixes for issues encountered by [mozilla/rkv](https://github.com/mozilla/rkv).
11
12## Building from Source
13
14```bash
15git clone --recursive git@github.com:mozilla/lmdb-rs.git
16cd lmdb-rs
17cargo build
18```
19
20## Publishing to crates.io
21
22To publish the lmdb-rkv-sys crate to crates.io:
23
24```bash
25git clone --recursive git@github.com:mozilla/lmdb-rs.git
26cd lmdb-rs/lmdb-sys
27# Update the version string in lmdb-sys/Cargo.toml and lmdb-sys/src/lib.rs.
28cargo publish
29git tag lmdb-rkv-sys-$VERSION # where $VERSION is the updated version string
30git push git@github.com:mozilla/lmdb-rs.git --tags
31```
32
⋯16 lines
15:9… ${{ if ne(parameters.name, 'Windows') }}:
16 - script: |
17 curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
18 echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
19 displayName: Install rust
20 # Windows.
21 - ${{ if eq(parameters.name, 'Windows') }}:
22 - script: |
23 curl -sSf -o rustup-init.exe https://win.rustup.rs
24 rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
25 set PATH=%PATH%;%USERPROFILE%\.cargo\bin
⋯7 lines
4:3… tern crate lmdb_sys as ffi;
5extern crate test;
6
7mod utils;
8
9use ffi::*;
10use lmdb::{
11 Cursor,
12 Result,
13 RoCursor,
14 Transaction,
15};
16use std::ptr;
17use test::{
18 black_box,
19 Bencher,
20};
21use utils::*;
22
23/// Benchmark of iterator sequential read performance.
24#[bench]
25fn bench_get_seq_iter(b: &mut Bencher) {
⋯4 lines
39
40pub fn generate() {
41 let lmdb_h = match std::env::var("LMDB_H_PATH") {
42 Ok(path) => PathBuf::from(path),
43 Err(_) => match pkg_config::probe_library("lmdb") {
44 …
45:2… Err(_) => {
46 let lmdb = PathBuf::from(&env::var("CARGO_MANIFEST_DIR").unwrap());
47 lmdb.join("lmdb")
48 .join("libraries")
49 .j …
Showing the top 5 files — 6 more files (64 regions) not shown.
No evidence locations were recorded for this file. Raw result