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:
parent
71cd3f021e
commit
b79ae025f0
1 changed files with 8 additions and 0 deletions
8
azalea/build.rs
Normal file
8
azalea/build.rs
Normal 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.");
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue