mirror of
https://github.com/achanda/ipnetwork.git
synced 2025-06-16 16:58:50 +00:00
Make the serde feature opt-in instead of opt-out (#200)
Most people add dependencies without checking their features or optional dependencies too carefully. This leads to them pulling in transitive dependencies they likely don't need.
This commit is contained in:
@ -24,7 +24,10 @@ travis-ci = { repository = "achanda/ipnetwork" }
|
|||||||
maintenance = { status = "passively-maintained" }
|
maintenance = { status = "passively-maintained" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["serde"]
|
# Keep optional dependencies out of the default features.
|
||||||
|
# Since most people add a dependency without `default-features = false` they involuntarily
|
||||||
|
# pull in unused dependencies.
|
||||||
|
default = []
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "parse_bench"
|
name = "parse_bench"
|
||||||
|
Reference in New Issue
Block a user