Skip to content

Commit 894f784

Browse files
committed
avoid implicit Cargo features
1 parent 83f729f commit 894f784

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@
190190
feature when depending on `bindgen` as a library.
191191
* Items are now parsed in the order they appear in source files. This may result in
192192
auto-generated `_bindgen_*` names having a different index.
193+
* Remove redundant Cargo features, which were all implicit:
194+
- bindgen-cli: `env_logger` and `log` removed in favor of `logging`
195+
- bindgen (lib):
196+
+ `log` removed in favor of `logging`
197+
+ `which` removed in favor of `which-logging`
198+
+ `annotate-snippets` removed in favor of `experimental`
193199

194200
## Removed
195201

bindgen-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ log = { version = "0.4", optional = true }
2929

3030
[features]
3131
default = ["logging", "runtime", "which-rustfmt"]
32-
logging = ["bindgen/logging", "env_logger", "log"]
32+
logging = ["bindgen/logging", "dep:env_logger", "dep:log"]
3333
static = ["bindgen/static"]
3434
runtime = ["bindgen/runtime"]
3535
# Dynamically discover a `rustfmt` binary using the `which` crate

bindgen/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ log = { version = "0.4", optional = true }
4444

4545
[features]
4646
default = ["logging", "prettyplease", "runtime", "which-rustfmt"]
47-
logging = ["log"]
47+
logging = ["dep:log"]
4848
static = ["clang-sys/static"]
4949
runtime = ["clang-sys/runtime"]
5050
# Dynamically discover a `rustfmt` binary using the `which` crate
51-
which-rustfmt = ["which"]
52-
experimental = ["annotate-snippets"]
51+
which-rustfmt = ["dep:which"]
52+
experimental = ["dep:annotate-snippets"]
5353

5454
## The following features are for internal use and they shouldn't be used if
5555
## you're not hacking on bindgen

0 commit comments

Comments
 (0)