Function cargo::core::features::nightly_features_allowed [−][src]
pub fn nightly_features_allowed() -> bool
This is a little complicated. This should return false if:
- this is an artifact of the rustc distribution process for “stable” or for “beta”
- this is an
#[test]
that does not opt in withenable_nightly_features
- this is a integration test that uses
ProcessBuilder
that does not opt in withmasquerade_as_nightly_cargo
This should return true if: - this is an artifact of the rustc distribution process for “nightly”
- this is being used in the rustc distribution process internally
- this is a cargo executable that was built from source
- this is an
#[test]
that calledenable_nightly_features
- this is a integration test that uses
ProcessBuilder
that calledmasquerade_as_nightly_cargo