Files
PartoufandClaude Opus 5 9f7170f1cb feat(cargo): explain why a library's features cannot be chosen
Features of the user's own package already worked: declare them in
[features] and pass --features, --all-features or --no-default-features
in the Cargo arguments box. Tested off, on, all, none and a misspelling.

A library's features are another matter. Its rlib arrives prebuilt --
built with --all-features, falling back to no features at all when that
does not build -- so a crate is one or the other, and which is neither
visible nor changeable from here. Asking for one anyway (--features
rand/small_rng) gets "the package 'output' does not contain this
feature: rand/small_rng", which is true but points at the wrong thing:
the user asked about rand, not about output.

explainFailure now covers that, keyed on the slash that makes it a
dependency's feature. A misspelling of your own feature has no slash and
is left to cargo, which has already said the useful thing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-05 18:44:19 +02:00
..
2026-08-05 17:27:51 +02:00
2026-06-04 23:41:19 +02:00
2026-07-02 18:26:35 +01:00
2026-07-02 18:26:35 +01:00
2025-07-28 10:34:46 -05:00
2026-05-23 14:47:16 +03:00