Specialization feature in nightly

This commit is contained in:
Andrea Fioraldi 2022-01-10 11:49:13 +01:00
parent 8870c50ff5
commit d7dbd021a4
3 changed files with 9 additions and 2 deletions

View File

@ -30,7 +30,7 @@ llmp_debug = [] # Enables debug output for LLMP
llmp_small_maps = [] # reduces initial map size for llmp
[build-dependencies]
rustc_version = "0.4"
rustversion = "1.0"
[dev-dependencies]
criterion = "0.3" # Benchmarking

7
libafl/build.rs Normal file
View File

@ -0,0 +1,7 @@
#[rustversion::nightly]
fn main() {
println!("cargo:rustc-cfg=unstable_feature");
}
#[rustversion::not(nightly)]
fn main() {}

View File

@ -3,7 +3,7 @@ Welcome to `LibAFL`
*/
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "RUSTC_IS_NIGHTLY", feature(min_specialization))]
#![cfg_attr(unstable_feature, feature(specialization))]
#![deny(rustdoc::broken_intra_doc_links)]
#![deny(clippy::pedantic)]
#![allow(