From 3c82c310321482fda44d8fbf0f10df956a9c7776 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Wed, 13 Jan 2021 14:12:48 +0100 Subject: [PATCH] Removed unneeded bindgen features Some features of bindgen are not needed when building the library and lead to unused dependencies (mainly `clap`). This change deactivates all `bindgen` features except for `runtime` which is required for build to work. This improved debug build time by ~13 seconds and (surprisingly) release build time by ~9 seconds. But perhaps improved security is more interesting. --- librocksdb-sys/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librocksdb-sys/Cargo.toml b/librocksdb-sys/Cargo.toml index 5ec782db9..7d2f6adbc 100644 --- a/librocksdb-sys/Cargo.toml +++ b/librocksdb-sys/Cargo.toml @@ -29,5 +29,5 @@ uuid = { version = "0.8", features = ["v4"] } [build-dependencies] cc = { version = "^1.0", features = ["parallel"] } -bindgen = "0.55" +bindgen = { version = "0.55", default-features = false, features = ["runtime"] } glob = "0.3"