From 3f8057bfe2e4b1b2bf1c4868f78f6e4ff7deb8c4 Mon Sep 17 00:00:00 2001 From: Myk Melez Date: Fri, 21 Jun 2019 15:03:46 -0700 Subject: [PATCH 1/2] prioritize testing lmdb-rkv with in-tree lmdb-rkv-sys; document publication --- Cargo.toml | 11 ++++++++++- README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ad0fc87..71836d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,16 @@ members = [ bitflags = "1" byteorder = "1.0" libc = "0.2" -lmdb-rkv-sys = "0.8.3" + +# In order to ensure that we test lmdb-rkv in CI against the in-tree version +# of lmdb-rkv-sys, we specify the dependency as a path here. +# +# But we can't publish the lmdb-rkv crate to crates.io with a path dependency, +# so we have to temporarily change this to point to the current version +# of lmdb-rkv-sys on crates.io when publishing lmdb-rkv to that crate registry. +# +# (See "Publishing to crates.io" in README.md for more information.) +lmdb-rkv-sys = { path = "./lmdb-sys" } [dev-dependencies] rand = "0.4" diff --git a/README.md b/README.md index 2df11b8..791a1a5 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,33 @@ cd lmdb-rs cargo build ``` +## Publishing to crates.io + +To publish the lmdb-rkv-sys crate to crates.io: + +```bash +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-rkv-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: + +```bash +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-rkv-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-rkv-sys dependency in Cargo.toml back to a path dependency +# on the ./lmdb-sys directory. +``` + ## Features * [x] lmdb-sys. From 81982782a49b7d5f398e8f19aec5cddf334ad5b6 Mon Sep 17 00:00:00 2001 From: Myk Melez Date: Sat, 22 Jun 2019 00:21:44 -0700 Subject: [PATCH 2/2] update lmdb-sys/lmdb to tip of mdb.RE/0.9-moz branch --- lmdb-sys/lmdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmdb-sys/lmdb b/lmdb-sys/lmdb index 17c76ae..38a873b 160000 --- a/lmdb-sys/lmdb +++ b/lmdb-sys/lmdb @@ -1 +1 @@ -Subproject commit 17c76ae9d56b0b7cf5c3839ea240ad4a868a7ed1 +Subproject commit 38a873b42b4996438c3246015c5fe9469cafbe2a