dtolnay / dtolnay/anyhow

Nightly probe ignores CARGO_UNSTABLE_ALLOW_FEATURES

Open
#453 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6.7k
Forks
224
PR merge metrics
No merged PRs in 30d

Description

This is an alternative to `RUSTFLAGS="-Zallow-features="` that can also control cargo features. Compiling a crate that depends on anyhow with `CARGO_UNSTABLE_ALLOW_FEATURES= cargo +nightly build` will incorrectly try to use unstable features, resulting in a compilation error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with `CARGO_UNSTABLE_ALLOW_FEATURES= cargo +nightly build` on a crate that depends on anyhow. Then locate the nightly probe logic and compare how it handles this variable with `RUSTFLAGS="-Zallow-features="`. Done means the empty variable prevents the probe from trying unstable features and the dependent crate builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.