-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Problem
There is a
-
1 ~ 2 weeks project, with 1 ~ 2 weeks cache
-
recent
RA
v0.3.1705 -
deep dependency tree have recent version,
thiserror-1.0.50
anyhow-1.0.75
, same authordtolnay
I encounter same old bug on thiserror-1.0.50
anyhow-1.0.75
.
#![feature]
may not be used on the stable release channel`
This bug was happening one year ago, but then fix.
In conclusion, this is maybe a mix problem of
-
build.rs workaround to detect
feature
, such aserror_generic_member_access
, is supported -
RA rustc wrapper for performance
-
sccache
-
cargo build cache
And I think the core problem is
- cargo does not provide builtin support to let
build.rs
detectfeature
is supported, so dev invent themself.
Proposed Solution
cargo
should provide builtin support to let build.rs
detect feature
is supported
Notes
Related
https://github.com/dtolnay/thiserror/blob/e9ea67c7e251764c3c2d839b6c06d9f35b154647/build.rs#L12
https://github.com/dtolnay/anyhow/blob/05e413219e97f101d8f39a90902e5c5d39f951fe/build.rs#L17