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-07-14 08:46:10 +01:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2026-02-08 12:50:20 +01:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2025-07-28 10:34:46 -05:00