You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's then up to consumers of the crate to know that they probably should disable features they aren't using, to save pulling in lots of unnecessary dependencies.
Whilst this reduces the confusion/friction for people who don't know how to enable a Cargo feature (since everything works out of the box), its very rare that anyone needs all features, so literally every consumer should really switch to default-features = false eventually.
Lots of consumers of the crate aren't doing this (even those maintained by experienced Rust users), eg:
By default
libherokubuildpack
has all Cargo features enabled:libcnb.rs/libherokubuildpack/Cargo.toml
Line 21 in d2b7475
It's then up to consumers of the crate to know that they probably should disable features they aren't using, to save pulling in lots of unnecessary dependencies.
Whilst this reduces the confusion/friction for people who don't know how to enable a Cargo feature (since everything works out of the box), its very rare that anyone needs all features, so literally every consumer should really switch to
default-features = false
eventually.Lots of consumers of the crate aren't doing this (even those maintained by experienced Rust users), eg:
And even the ones that are, often are doing so only because I fixed them:
We should either not enable any features by default, or only enable the most commonly used ones (eg logging).
The text was updated successfully, but these errors were encountered: