Commit bb1922e8 authored by Qinxuan Chen's avatar Qinxuan Chen Committed by Yi Wu

Update to the latest dependencies (#447)

Signed-off-by: 's avatarkoushiro <koushiro.cqx@gmail.com>
parent 0d0ed839
...@@ -23,12 +23,9 @@ valgrind = [] ...@@ -23,12 +23,9 @@ valgrind = []
[dependencies] [dependencies]
libc = "0.2.11" libc = "0.2.11"
librocksdb_sys = { path = "librocksdb_sys" }
[dependencies.librocksdb_sys]
path = "librocksdb_sys"
[dev-dependencies] [dev-dependencies]
rand = "0.7"
crc = "1.8" crc = "1.8"
rand = "0.7"
tempfile = "3.1" tempfile = "3.1"
tempdir = "0.3"
# rust-rocksdb # rust-rocksdb
[![Build Status](https://travis-ci.org/tikv/rust-rocksdb.svg)](https://travis-ci.org/tikv/rust-rocksdb)
[![Dependency Status](https://deps.rs/repo/github/tikv/rust-rocksdb/status.svg)](https://deps.rs/repo/github/tikv/rust-rocksdb)
This library has been tested against RocksDB 6.4 on Linux and macOS. This library has been tested against RocksDB 6.4 on Linux and macOS.
## Status ## Status
......
...@@ -6,8 +6,11 @@ build = "build.rs" ...@@ -6,8 +6,11 @@ build = "build.rs"
links = "rocksdb" links = "rocksdb"
[dependencies] [dependencies]
bzip2-sys = "0.1.8+1.0.8"
libc = "0.2.11" libc = "0.2.11"
libtitan_sys = { path = "libtitan_sys" } libtitan_sys = { path = "libtitan_sys" }
libz-sys = { version = "1.0.25", features = ["static"] }
zstd-sys = "1.4.15+zstd.1.4.4"
[dev-dependencies] [dev-dependencies]
tempfile = "3.1" tempfile = "3.1"
...@@ -26,24 +29,14 @@ cmake = "0.1" ...@@ -26,24 +29,14 @@ cmake = "0.1"
bindgen = "0.51" bindgen = "0.51"
[dependencies.jemalloc-sys] [dependencies.jemalloc-sys]
version = "0.1.8" version = "0.3.2"
optional = true optional = true
features = ["unprefixed_malloc_on_supported_platforms"] features = ["unprefixed_malloc_on_supported_platforms"]
[dependencies.libz-sys]
version = "1.0.25"
features = ["static"]
[dependencies.bzip2-sys]
git = "https://github.com/alexcrichton/bzip2-rs.git"
[dependencies.lz4-sys] [dependencies.lz4-sys]
git = "https://github.com/busyjay/lz4-rs.git" git = "https://github.com/busyjay/lz4-rs.git"
branch = "adjust-build" branch = "adjust-build"
[dependencies.zstd-sys]
git = "https://github.com/gyscos/zstd-rs.git"
[dependencies.snappy-sys] [dependencies.snappy-sys]
git = "https://github.com/busyjay/rust-snappy.git" git = "https://github.com/busyjay/rust-snappy.git"
branch = "static-link" branch = "static-link"
...@@ -5,7 +5,10 @@ build = "build.rs" ...@@ -5,7 +5,10 @@ build = "build.rs"
links = "titan" links = "titan"
[dependencies] [dependencies]
bzip2-sys = "0.1.8+1.0.8"
libc = "0.2.11" libc = "0.2.11"
libz-sys = { version = "1.0.25", features = ["static"] }
zstd-sys = "1.4.15+zstd.1.4.4"
[features] [features]
default = [] default = []
...@@ -18,20 +21,10 @@ sse = [] ...@@ -18,20 +21,10 @@ sse = []
cc = "1.0.3" cc = "1.0.3"
cmake = "0.1" cmake = "0.1"
[dependencies.libz-sys]
version = "1.0.25"
features = ["static"]
[dependencies.bzip2-sys]
git = "https://github.com/alexcrichton/bzip2-rs.git"
[dependencies.lz4-sys] [dependencies.lz4-sys]
git = "https://github.com/busyjay/lz4-rs.git" git = "https://github.com/busyjay/lz4-rs.git"
branch = "adjust-build" branch = "adjust-build"
[dependencies.zstd-sys]
git = "https://github.com/gyscos/zstd-rs.git"
[dependencies.snappy-sys] [dependencies.snappy-sys]
git = "https://github.com/busyjay/rust-snappy.git" git = "https://github.com/busyjay/rust-snappy.git"
branch = "static-link" branch = "static-link"
...@@ -250,7 +250,10 @@ mod tests { ...@@ -250,7 +250,10 @@ mod tests {
drop(cf_opts); drop(cf_opts);
assert!(rx.recv_timeout(Duration::from_secs(1)).is_ok()); assert!(rx.recv_timeout(Duration::from_secs(1)).is_ok());
let dir = tempdir::TempDir::new("compaction_filter").unwrap(); let dir = tempfile::Builder::new()
.prefix("compaction_filter")
.tempdir()
.unwrap();
let path = dir.path().to_str().unwrap(); let path = dir.path().to_str().unwrap();
let (tx, rx) = mpsc::sync_channel(1); let (tx, rx) = mpsc::sync_channel(1);
...@@ -281,7 +284,10 @@ mod tests { ...@@ -281,7 +284,10 @@ mod tests {
drop(cf_opts); drop(cf_opts);
assert!(rx.recv_timeout(Duration::from_secs(1)).is_ok()); assert!(rx.recv_timeout(Duration::from_secs(1)).is_ok());
let dir = tempdir::TempDir::new("compaction_filter").unwrap(); let dir = tempfile::Builder::new()
.prefix("compaction_filter")
.tempdir()
.unwrap();
let path = dir.path().to_str().unwrap(); let path = dir.path().to_str().unwrap();
let (tx, rx) = mpsc::sync_channel(1); let (tx, rx) = mpsc::sync_channel(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment