diff --git a/Cargo.toml b/Cargo.toml index 2a1462a..c967724 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,3 +19,6 @@ rustc_version = "0.2" [features] default = [] no_std = [] + +# for tests +no_unwind_protection = [] diff --git a/build.rs b/build.rs index 87254ce..5785197 100644 --- a/build.rs +++ b/build.rs @@ -25,6 +25,7 @@ fn build_tramp() fn main() { // Assert we haven't travelled back in time assert!(version().unwrap().major >= 1); + println!("cargo::rustc-check-cfg=cfg(nightly)"); // Set cfg flags depending on release channel match version_meta().unwrap().channel {