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:
Linus Färnstrand
2024-09-24 17:40:42 +02:00
committed by GitHub
parent ad46759a55
commit d665bb6beb

View File

@ -24,7 +24,10 @@ travis-ci = { repository = "achanda/ipnetwork" }
maintenance = { status = "passively-maintained" }
[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]]
name = "parse_bench"