diff options
| author | mat <git@matdoes.dev> | 2023-11-18 00:52:54 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-11-18 00:52:54 -0600 |
| commit | b79ae025f08935044c621259d4e0c4bb72bbcd7f (patch) | |
| tree | 90b68d0d7f88c7c17e93f9c9cf74d91a87f7a596 | |
| parent | 71cd3f021e5aeec81d9b473860702da15668b7c9 (diff) | |
| download | azalea-drasl-b79ae025f08935044c621259d4e0c4bb72bbcd7f.tar.xz | |
show error if user is on stable rust
| -rw-r--r-- | azalea/build.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/azalea/build.rs b/azalea/build.rs new file mode 100644 index 00000000..f97dce65 --- /dev/null +++ b/azalea/build.rs @@ -0,0 +1,8 @@ +use std::env; + +fn main() { + let rust_toolchain = env::var("RUSTUP_TOOLCHAIN").unwrap(); + if rust_toolchain.starts_with("stable") { + panic!("Azalea currently requires nightly Rust. You can use `rustup override set nightly` to set the toolchain for this directory."); + } +} |
