
Optional Dependencies and Feature Flags in Cargo Done Right
Make a dependency optional and expose it as a feature, with dep: syntax to avoid implicit features. Cover cfg gating, testing every combination and the pitfalls of default features.
6 min read


