Issue #1410: ADR-393: record feature reach in the ledger, show NK1345 without cargo’s own error line

Open and answer this issue on GitHub.

ready · opened 2026-11-08 · updated 2026-11-08 · 0 comments

Part of #978. These are the remaining pieces of ADR-393 D3 and D6 after #1393 (6f0c548a).

Found

  1. Ledger. D3 says the compiler records in the ledger (Part III 13.5) what it derives for features: what each feature reaches, the implications between features, and which dependencies are optional. Today the build writes the #[cfg] and the Cargo [features], but records none of this in the ledger.
  2. NK1345. D6 says a feature that rustc refuses is reported as a Nikaia diagnostic on the .nika root. Today cargo’s own error: could not compile … line is printed on stderr above NK1345. You can see it in the test a_feature_set_rustc_refuses_is_refused_at_the_manifest.

To build

Done when

Both tests are green, and the rest of the rust-library tests are still green.

Back to Open Issues