by SnowProblem · 3y ago · 0 comments
serde = { version = "1.0", features = ["serde_derive", "fast_compile"] }
Either opt-in or opt-out is fine. It's surely useful during development but it shouldn't be on for production builds. Any transitivity issues should be considered problems with the dependency.
There's also the problem that the build may fail because it will still download the binary, which you may want to forbid entirely.
https://doc.rust-lang.org/cargo/reference/resolver.html#feat...
That said I'm not sure how that applies transitively, I could have sworn I've seen conflicting features not cause transitive build failures.