Skip to content

Commit d1bd354

Browse files
committed
allow using static bindgen feature
1 parent b8bf373 commit d1bd354

File tree

3 files changed

+27
-20
lines changed

3 files changed

+27
-20
lines changed

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@ description = "Rust wrapper for Facebook's RocksDB embeddable database"
44
version = "0.22.0"
55
edition = "2018"
66
rust-version = "1.71.1"
7-
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]
7+
authors = [
8+
"Tyler Neely <t@jujit.su>",
9+
"David Greenberg <dsg123456789@gmail.com>",
10+
]
811
repository = "https://github.com/rust-rocksdb/rust-rocksdb"
912
license = "Apache-2.0"
10-
categories = [ "database" ]
13+
categories = ["database"]
1114
keywords = ["database", "embedded", "LSM-tree", "persistence"]
1215
homepage = "https://github.com/rust-rocksdb/rust-rocksdb"
13-
exclude = [
14-
".gitignore",
15-
".travis.yml",
16-
"deploy.sh",
17-
"test/**/*",
18-
]
16+
exclude = [".gitignore", ".travis.yml", "deploy.sh", "test/**/*"]
1917

2018
[workspace]
2119
members = ["librocksdb-sys"]
2220

2321
[features]
24-
default = ["snappy", "lz4", "zstd", "zlib", "bzip2"]
22+
default = ["snappy", "lz4", "zstd", "zlib", "bzip2", "bindgen-runtime"]
2523
jemalloc = ["librocksdb-sys/jemalloc"]
2624
io-uring = ["librocksdb-sys/io-uring"]
2725
valgrind = []
@@ -34,15 +32,17 @@ bzip2 = ["librocksdb-sys/bzip2"]
3432
rtti = ["librocksdb-sys/rtti"]
3533
multi-threaded-cf = []
3634
serde1 = ["serde"]
35+
bindgen-runtime = ["librocksdb-sys/bindgen-runtime"]
36+
bindgen-static = ["librocksdb-sys/bindgen-static"]
3737

3838
[dependencies]
3939
libc = "0.2"
40-
librocksdb-sys = { path = "librocksdb-sys", version = "0.17.0" }
41-
serde = { version = "1", features = [ "derive" ], optional = true }
40+
librocksdb-sys = { path = "librocksdb-sys", version = "0.17.0", default-features = false }
41+
serde = { version = "1", features = ["derive"], optional = true }
4242

4343
[dev-dependencies]
44-
trybuild = "<=1.0.89" # trybuild 1.0.90 needs MSRV 1.70
44+
trybuild = "<=1.0.89" # trybuild 1.0.90 needs MSRV 1.70
4545
tempfile = "3.1"
4646
pretty_assertions = "1.0"
4747
bincode = "1.3"
48-
serde = { version = "1", features = [ "derive" ] }
48+
serde = { version = "1", features = ["derive"] }

librocksdb-sys/Cargo.toml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@ name = "librocksdb-sys"
33
version = "0.17.0+9.0.0"
44
edition = "2018"
55
rust-version = "1.71.1"
6-
authors = ["Karl Hobley <karlhobley10@gmail.com>", "Arkadiy Paronyan <arkadiy@ethcore.io>"]
6+
authors = [
7+
"Karl Hobley <karlhobley10@gmail.com>",
8+
"Arkadiy Paronyan <arkadiy@ethcore.io>",
9+
]
710
license = "MIT/Apache-2.0/BSD-3-Clause"
811
description = "Native bindings to librocksdb"
912
readme = "README.md"
1013
repository = "https://github.com/rust-rocksdb/rust-rocksdb"
11-
keywords = [ "bindings", "ffi", "rocksdb" ]
12-
categories = [ "api-bindings", "database", "external-ffi-bindings" ]
14+
keywords = ["bindings", "ffi", "rocksdb"]
15+
categories = ["api-bindings", "database", "external-ffi-bindings"]
1316
links = "rocksdb"
1417

1518
[features]
16-
default = [ "static" ]
19+
default = ["static", "bindgen/runtime"]
1720
jemalloc = ["tikv-jemalloc-sys"]
1821
static = ["libz-sys?/static", "bzip2-sys?/static"]
22+
bindgen-runtime = ["bindgen/runtime"]
23+
bindgen-static = ["bindgen/static"]
1924
mt_static = []
2025
io-uring = ["pkg-config"]
2126
snappy = []
@@ -27,7 +32,9 @@ rtti = []
2732

2833
[dependencies]
2934
libc = "0.2"
30-
tikv-jemalloc-sys = { version = "0.6", features = ["unprefixed_malloc_on_supported_platforms"], optional = true }
35+
tikv-jemalloc-sys = { version = "0.6", features = [
36+
"unprefixed_malloc_on_supported_platforms",
37+
], optional = true }
3138
lz4-sys = { version = "1.10", optional = true }
3239
zstd-sys = { version = "2.0", features = ["zdict_builder"], optional = true }
3340
libz-sys = { version = "1.1", default-features = false, optional = true }
@@ -38,6 +45,6 @@ uuid = { version = "1.0", features = ["v4"] }
3845

3946
[build-dependencies]
4047
cc = { version = "1.0", features = ["parallel"] }
41-
bindgen = { version = "0.69", default-features = false, features = ["runtime"] }
48+
bindgen = { version = "0.69", default-features = false }
4249
glob = "0.3"
4350
pkg-config = { version = "0.3", optional = true }

librocksdb-sys/rocksdb

Submodule rocksdb updated 568 files

0 commit comments

Comments
 (0)