From 049090c9c9af57b3d6cb4a5bc41dc0ea91fe86cf Mon Sep 17 00:00:00 2001 From: Congyu WANG Date: Sun, 3 Nov 2024 15:43:40 +0800 Subject: [PATCH] allow using static bindgen feature --- librocksdb-sys/Cargo.toml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml index bd42b9a6e..a636f07cd 100644 --- a/librocksdb-sys/Cargo.toml +++ b/librocksdb-sys/Cargo.toml @@ -3,19 +3,24 @@ name = "librocksdb-sys" version = "0.17.0+9.0.0" edition = "2018" rust-version = "1.71.1" -authors = ["Karl Hobley ", "Arkadiy Paronyan "] +authors = [ + "Karl Hobley ", + "Arkadiy Paronyan ", +] license = "MIT/Apache-2.0/BSD-3-Clause" description = "Native bindings to librocksdb" readme = "README.md" repository = "https://github.com/rust-rocksdb/rust-rocksdb" -keywords = [ "bindings", "ffi", "rocksdb" ] -categories = [ "api-bindings", "database", "external-ffi-bindings" ] +keywords = ["bindings", "ffi", "rocksdb"] +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 = [] @@ -27,7 +32,9 @@ rtti = [] [dependencies] libc = "0.2" -tikv-jemalloc-sys = { version = "0.6", features = ["unprefixed_malloc_on_supported_platforms"], optional = true } +tikv-jemalloc-sys = { version = "0.6", features = [ + "unprefixed_malloc_on_supported_platforms", +], optional = true } lz4-sys = { version = "1.10", optional = true } zstd-sys = { version = "2.0", features = ["zdict_builder"], optional = true } libz-sys = { version = "1.1", default-features = false, optional = true } @@ -38,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 }