1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-15 13:02:54 +01:00
actix-web/build.rs

17 lines
433 B
Rust
Raw Permalink Normal View History

2017-11-24 10:28:43 -08:00
extern crate version_check;
2017-10-26 06:12:23 -07:00
fn main() {
match version_check::is_min_version("1.26.0") {
Some((true, _)) => println!("cargo:rustc-cfg=actix_impl_trait"),
_ => (),
};
2017-11-24 10:28:43 -08:00
match version_check::is_nightly() {
Some(true) => {
println!("cargo:rustc-cfg=actix_nightly");
println!("cargo:rustc-cfg=actix_impl_trait");
}
2017-11-24 10:28:43 -08:00
Some(false) => (),
None => (),
};
2017-10-26 06:12:23 -07:00
}