Benign github Download

dfinity-lab/lmdb-rs

Basename is uppercase README.mdReferences curl flags and HTTP URL

Evidence

Markdown-style heading precedes a code fence README.md · lines 1–48
1[![Build Status](https://travis-ci.org/mozilla/lmdb-rs.svg?branch=master)](https://travis-ci.org/mozilla/lmdb-rs)
2[![Windows Build status](https://ci.appveyor.com/api/projects/status/id69kkymorycld55/branch/master?svg=true)](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
Text contains curl-to-shell or Node pipeline azure-pipelines-template.yml · lines 15–32
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
imports ffi::* cursor.rs · lines 4–25
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) {
Reads a Rust environment variable bindgen.rs · lines 35–44
⋯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 …
Rust reads an environment variable bindgen.rs · lines 45–49
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.