From reading this page, it states that you need to turn off all defaults to override them.
With the exception of the
default
feature, all features are opt-in. To opt out of the default feature, usedefault-features = false
and cherry-pick individual features.
Other build systems I've used (CMake, SCons, Autotools, Jam) all allow to change a single default.
Is this possible with Cargo?
This is useful because in most cases I want to use default options, with only minor adjustments. Its also important to me that in the future - new features which the developers think should be enabled by default, are not disabled on my build because I chose to adjust an unrelated feature.