Skip to content

Commit

Permalink
Disable most features of bindgen to reduce dependencies (#41)
Browse files Browse the repository at this point in the history
By default, bindgen depends on everything needed to build the bindgen
command-line tool, such as clap and its various dependencies. Disable
default-features on bindgen and just enable the minimum required
features. This reduces loopdev's full dependency tree from 54 crates to
39 crates.
  • Loading branch information
joshtriplett authored Aug 9, 2021
1 parent 8453a6d commit 7efea6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ errno = "0.2"
libc = "0.2"

[build-dependencies]
bindgen = "0.58.1"
bindgen = { version = "0.58.1", default-features = false, features = ["runtime"] }

[dev-dependencies]
tempfile = "3.1.0"
Expand Down

0 comments on commit 7efea6b

Please sign in to comment.