mirror of
https://github.com/actix/actix-web.git
synced 2024-12-26 10:00:34 +00:00
16 lines
433 B
Rust
16 lines
433 B
Rust
extern crate version_check;
|
|
|
|
fn main() {
|
|
match version_check::is_min_version("1.26.0") {
|
|
Some((true, _)) => println!("cargo:rustc-cfg=actix_impl_trait"),
|
|
_ => (),
|
|
};
|
|
match version_check::is_nightly() {
|
|
Some(true) => {
|
|
println!("cargo:rustc-cfg=actix_nightly");
|
|
println!("cargo:rustc-cfg=actix_impl_trait");
|
|
}
|
|
Some(false) => (),
|
|
None => (),
|
|
};
|
|
}
|