set features

main
Ziyang Hu 2 years ago
parent 50d7410fa1
commit 6e39fb78b9

1
Cargo.lock generated

@ -871,6 +871,7 @@ dependencies = [
"glob", "glob",
"libc", "libc",
"libz-sys", "libz-sys",
"pkg-config",
"tikv-jemalloc-sys", "tikv-jemalloc-sys",
"zstd-sys", "zstd-sys",
] ]

@ -8,6 +8,10 @@ license = "AGPL-3.0-or-later"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
jemalloc = ["tikv-jemallocator-global", "cozorocks/jemalloc"]
io-uring = ["cozorocks/io-uring"]
[dependencies] [dependencies]
casey = "0.3.3" casey = "0.3.3"
either = "1.7.0" either = "1.7.0"
@ -43,7 +47,7 @@ unicode-normalization = "0.1.21"
thiserror = "1.0.34" thiserror = "1.0.34"
uuid = { version = "1.1.2", features = ["v1", "v4", "serde"] } uuid = { version = "1.1.2", features = ["v1", "v4", "serde"] }
csv = "1.1.6" csv = "1.1.6"
tikv-jemallocator-global = "0.5.0" tikv-jemallocator-global = { version = "0.5.0", optional = true }
cozorocks = { path = "cozorocks" } cozorocks = { path = "cozorocks" }
clap = { version = "3.2.8", features = ["derive"] } clap = { version = "3.2.8", features = ["derive"] }

@ -9,7 +9,11 @@ license = "AGPL-3.0-or-later"
[dependencies] [dependencies]
cxx = "1.0.69" cxx = "1.0.69"
miette = "5.3.0" miette = "5.3.0"
librocksdb-sys = { version = "=0.8.0", features = ["static", "jemalloc", "lz4", "zstd", "rtti"] } librocksdb-sys = { version = "=0.8.0", features = ["lz4", "zstd"] }
[features]
jemalloc = ["librocksdb-sys/jemalloc"]
io-uring = ["librocksdb-sys/io-uring"]
[build-dependencies] [build-dependencies]
cxx-build = "1.0.69" cxx-build = "1.0.69"
Loading…
Cancel
Save