diff options
| author | mat <git@matdoes.dev> | 2024-08-11 09:03:57 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-08-11 09:03:57 +0000 |
| commit | 5ab9c501e93907a8a688266fd027a48bbf1c2eca (patch) | |
| tree | 5a50b0f1422dfe9a8ab80bac8aec349c5580fc4a /azalea | |
| parent | b445b7c032be90304c624bce612c1ea2d62d8375 (diff) | |
| download | azalea-drasl-5ab9c501e93907a8a688266fd027a48bbf1c2eca.tar.xz | |
fmt
Diffstat (limited to 'azalea')
| -rw-r--r-- | azalea/build.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea/build.rs b/azalea/build.rs index 25fff0e5..6fe00484 100644 --- a/azalea/build.rs +++ b/azalea/build.rs @@ -3,11 +3,13 @@ use std::process::Command; fn main() { match env::var("RUSTUP_TOOLCHAIN") { - Ok(rust_toolchain) if !rust_toolchain.starts_with("nightly") => { // stable & beta + Ok(rust_toolchain) if !rust_toolchain.starts_with("nightly") => { + // stable & beta panic!("Azalea currently requires nightly Rust. You can use `rustup override set nightly` to set the toolchain for this directory."); } Ok(_) => return, // nightly - Err(_) => { // probably not installed via rustup, run rustc and parse its output + Err(_) => { + // probably not installed via rustup, run rustc and parse its output let rustc_command = env::var("RUSTC") .or_else(|_| env::var("CARGO_BUILD_RUSTC")) .unwrap_or(String::from("rustc")); |
