diff --git a/Cargo.toml b/Cargo.toml index e76ae6cdd..0eae96685 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,24 +4,22 @@ description = "Rust wrapper for Facebook's RocksDB embeddable database" version = "0.22.0" edition = "2018" rust-version = "1.71.1" -authors = ["Tyler Neely ", "David Greenberg "] +authors = [ + "Tyler Neely ", + "David Greenberg ", +] repository = "https://github.com/rust-rocksdb/rust-rocksdb" license = "Apache-2.0" -categories = [ "database" ] +categories = ["database"] keywords = ["database", "embedded", "LSM-tree", "persistence"] homepage = "https://github.com/rust-rocksdb/rust-rocksdb" -exclude = [ - ".gitignore", - ".travis.yml", - "deploy.sh", - "test/**/*", -] +exclude = [".gitignore", ".travis.yml", "deploy.sh", "test/**/*"] [workspace] members = ["librocksdb-sys"] [features] -default = ["snappy", "lz4", "zstd", "zlib", "bzip2"] +default = ["snappy", "lz4", "zstd", "zlib", "bzip2", "bindgen-runtime"] jemalloc = ["librocksdb-sys/jemalloc"] io-uring = ["librocksdb-sys/io-uring"] valgrind = [] @@ -34,15 +32,19 @@ bzip2 = ["librocksdb-sys/bzip2"] rtti = ["librocksdb-sys/rtti"] multi-threaded-cf = [] serde1 = ["serde"] +bindgen-runtime = ["librocksdb-sys/bindgen-runtime"] +bindgen-static = ["librocksdb-sys/bindgen-static"] [dependencies] libc = "0.2" -librocksdb-sys = { path = "librocksdb-sys", version = "0.17.0" } -serde = { version = "1", features = [ "derive" ], optional = true } +librocksdb-sys = { path = "librocksdb-sys", version = "0.17.0", default-features = false, features = [ + "static", +] } +serde = { version = "1", features = ["derive"], optional = true } [dev-dependencies] -trybuild = "<=1.0.89" # trybuild 1.0.90 needs MSRV 1.70 +trybuild = "<=1.0.89" # trybuild 1.0.90 needs MSRV 1.70 tempfile = "3.1" pretty_assertions = "1.0" bincode = "1.3" -serde = { version = "1", features = [ "derive" ] } +serde = { version = "1", features = ["derive"] } diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml index 5e76c62be..a636f07cd 100644 --- a/librocksdb-sys/Cargo.toml +++ b/librocksdb-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "librocksdb-sys" -version = "0.17.0+9.7.3" +version = "0.17.0+9.0.0" edition = "2018" rust-version = "1.71.1" authors = [ @@ -16,9 +16,11 @@ categories = ["api-bindings", "database", "external-ffi-bindings"] links = "rocksdb" [features] -default = ["static"] +default = ["static", "bindgen/runtime"] jemalloc = ["tikv-jemalloc-sys"] static = ["libz-sys?/static", "bzip2-sys?/static"] +bindgen-runtime = ["bindgen/runtime"] +bindgen-static = ["bindgen/static"] mt_static = [] io-uring = ["pkg-config"] snappy = [] @@ -43,6 +45,6 @@ uuid = { version = "1.0", features = ["v4"] } [build-dependencies] cc = { version = "1.0", features = ["parallel"] } -bindgen = { version = "0.69", default-features = false, features = ["runtime"] } +bindgen = { version = "0.69", default-features = false } glob = "0.3" pkg-config = { version = "0.3", optional = true }