Skip to content

Commit 6ed3826

Browse files
committed
Explicitly create features with same name as optional dependencies
1 parent 3c3a173 commit 6ed3826

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ proc-macro = true
1515
[features]
1616
#! The crate provides a set of optional features that can be enabled in your `cargo.toml` file.
1717
#!
18-
## By default, only generate stdlib types.
19-
# The features for the optional dependencies "macaddr" and "ipnetwork" add extra functionality.
18+
## By default, only generate stdlib types
2019
default = []
20+
## enables generation of [`ipnetwork`] types
21+
ipnetwork = ["dep:ipnetwork"]
22+
## enables generation of [`macaddr`] types
23+
macaddr = ["dep:macaddr"]
2124

2225
[dependencies]
2326
cfg-if = "1"
2427
document-features = { version = "0.2", optional = true }
25-
# Enable the "ipnetwork" feature to get const addr support for `ipnetwork` types
2628
ipnetwork = { version = "0.21.1", optional = true, default-features = false }
27-
# Enable the "macaddr" feature to get const addr support for `macaddr` types
2829
macaddr = { version = "1.0", optional = true }
2930
proc-macro-error = "1.0"
3031
proc-macro2 = "1"

0 commit comments

Comments
 (0)