1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

show error if user is on stable rust

This commit is contained in:
mat 2023-11-18 00:52:54 -06:00
parent 71cd3f021e
commit b79ae025f0

8
azalea/build.rs Normal file
View file

@ -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.");
}
}