FRET-LibAFL/libafl/build.rs
Dominik Maier dfaf06a22e
Make bolts work without alloc (#1401)
* Make bolts work without alloc

* Use core::Error where available

* unstable_feature -> nightly

* windows no_alloc
2023-08-05 01:03:40 +02:00

15 lines
353 B
Rust

#[rustversion::nightly]
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn main() {
println!("cargo:rerun-if-changed=build.rs");
assert!(
cfg!(not(feature = "nautilus")),
"The 'nautilus' feature of libafl requires a nightly compiler"
);
}