From 358f4284505428836790a1efdc729e41859e359d Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Thu, 12 Sep 2019 14:25:48 +0200 Subject: [PATCH 1/3] Use a simple lib name for lmdb-rkv-sys, mirroring what lmdb-rkv does Signed-off-by: Victor Porof --- benches/cursor.rs | 2 +- benches/transaction.rs | 2 +- lmdb-sys/Cargo.toml | 3 +++ lmdb-sys/tests/lmdb.rs | 2 +- lmdb-sys/tests/simple.rs | 4 ++-- src/lib.rs | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/benches/cursor.rs b/benches/cursor.rs index 901d701..56d93ee 100644 --- a/benches/cursor.rs +++ b/benches/cursor.rs @@ -1,7 +1,7 @@ #![feature(test)] extern crate lmdb; -extern crate lmdb_rkv_sys as ffi; +extern crate lmdb_sys as ffi; extern crate test; mod utils; diff --git a/benches/transaction.rs b/benches/transaction.rs index 3f08a74..c0a713a 100644 --- a/benches/transaction.rs +++ b/benches/transaction.rs @@ -2,7 +2,7 @@ extern crate libc; extern crate lmdb; -extern crate lmdb_rkv_sys as ffi; +extern crate lmdb_sys as ffi; extern crate rand; extern crate test; diff --git a/lmdb-sys/Cargo.toml b/lmdb-sys/Cargo.toml index 5fe722a..b87938e 100644 --- a/lmdb-sys/Cargo.toml +++ b/lmdb-sys/Cargo.toml @@ -17,6 +17,9 @@ categories = ["database", "external-ffi-bindings"] # like `cargo-script` instead. build = "build.rs" +[lib] +name = "lmdb_sys" + [dependencies] libc = "0.2.62" diff --git a/lmdb-sys/tests/lmdb.rs b/lmdb-sys/tests/lmdb.rs index 460f8b7..2acb97d 100644 --- a/lmdb-sys/tests/lmdb.rs +++ b/lmdb-sys/tests/lmdb.rs @@ -1,4 +1,4 @@ -extern crate lmdb_rkv_sys; +extern crate lmdb_sys; use std::env; use std::path::PathBuf; diff --git a/lmdb-sys/tests/simple.rs b/lmdb-sys/tests/simple.rs index 8e13a01..eb2df05 100644 --- a/lmdb-sys/tests/simple.rs +++ b/lmdb-sys/tests/simple.rs @@ -1,6 +1,6 @@ -extern crate lmdb_rkv_sys; +extern crate lmdb_sys; -use lmdb_rkv_sys::*; +use lmdb_sys::*; use std::ffi::{c_void, CString}; use std::ptr; diff --git a/src/lib.rs b/src/lib.rs index 13deac8..0cec427 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ extern crate byteorder; extern crate libc; -extern crate lmdb_rkv_sys as ffi; +extern crate lmdb_sys as ffi; #[cfg(test)] extern crate tempdir; From 76767e9e75703eb584dd10fde6b92a5005c5e0a5 Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Thu, 12 Sep 2019 14:26:20 +0200 Subject: [PATCH 2/3] Use CI badges for the crates.io page, mirroring what lmdb-rkv does Signed-off-by: Victor Porof --- lmdb-sys/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lmdb-sys/Cargo.toml b/lmdb-sys/Cargo.toml index b87938e..c6cc98b 100644 --- a/lmdb-sys/Cargo.toml +++ b/lmdb-sys/Cargo.toml @@ -20,6 +20,10 @@ build = "build.rs" [lib] name = "lmdb_sys" +[badges] +travis-ci = { repository = "mozilla/lmdb-rs" } +appveyor = { repository = "mozilla/lmdb-rs" } + [dependencies] libc = "0.2.62" From 928f3c8af326c7f139172b6eb1f46d85e09b2d1a Mon Sep 17 00:00:00 2001 From: Victor Porof Date: Thu, 12 Sep 2019 14:38:07 +0200 Subject: [PATCH 3/3] Have documentation and homepage urls for the crates.io page Signed-off-by: Victor Porof --- Cargo.toml | 5 ++--- lmdb-sys/Cargo.toml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa19b5b..db5ccad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,14 @@ [package] - name = "lmdb-rkv" # NB: When modifying, also modify html_root_url in lib.rs version = "0.12.0" authors = ["Dan Burkert ", "Victor Porof "] license = "Apache-2.0" - description = "Idiomatic and safe LMDB wrapper." +documentation = "https://docs.rs/lmdb-rkv" +homepage = "https://github.com/mozilla/lmdb-rs" repository = "https://github.com/mozilla/lmdb-rs.git" readme = "README.md" -documentation = "https://docs.rs/lmdb-rkv" keywords = ["LMDB", "database", "storage-engine", "bindings", "library"] categories = ["database"] diff --git a/lmdb-sys/Cargo.toml b/lmdb-sys/Cargo.toml index c6cc98b..946b7a1 100644 --- a/lmdb-sys/Cargo.toml +++ b/lmdb-sys/Cargo.toml @@ -1,15 +1,14 @@ [package] - name = "lmdb-rkv-sys" # NB: When modifying, also modify html_root_url in lib.rs version = "0.9.0" authors = ["Dan Burkert ", "Victor Porof "] license = "Apache-2.0" - description = "Rust bindings for liblmdb." +documentation = "https://docs.rs/lmdb-rkv-sys" +homepage = "https://github.com/mozilla/lmdb-rs" repository = "https://github.com/mozilla/lmdb-rs.git" readme = "../README.md" -documentation = "https://docs.rs/lmdb-rkv-sys" keywords = ["LMDB", "database", "storage-engine", "bindings", "library"] categories = ["database", "external-ffi-bindings"]