From b79ae025f08935044c621259d4e0c4bb72bbcd7f Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 18 Nov 2023 00:52:54 -0600 Subject: [PATCH] show error if user is on stable rust --- azalea/build.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 azalea/build.rs 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."); + } +}