-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cfg nighyly for integration test for cargo-dist to work on stable
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
let output = std::process::Command::new("rustc").arg("-V").output()?; | ||
// set nightly cfg if current toolchain is nightly | ||
if std::str::from_utf8(&output.stdout)?.contains("nightly") { | ||
println!("cargo:rustc-cfg=nightly"); | ||
} | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters