Skip to content

Commit b79ae02

Browse files
committed
show error if user is on stable rust
1 parent 71cd3f0 commit b79ae02

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

azalea/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use std::env;
2+
3+
fn main() {
4+
let rust_toolchain = env::var("RUSTUP_TOOLCHAIN").unwrap();
5+
if rust_toolchain.starts_with("stable") {
6+
panic!("Azalea currently requires nightly Rust. You can use `rustup override set nightly` to set the toolchain for this directory.");
7+
}
8+
}

0 commit comments

Comments
 (0)