Skip to content

Commit 2688e8a

Browse files
committed
Add missing build.rs
1 parent 80e945f commit 2688e8a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extern crate rustc_version;
2+
use rustc_version::{version, Version};
3+
4+
fn main() {
5+
if version().unwrap() >= Version::parse("1.27.0").unwrap() {
6+
println!("cargo:rustc-cfg=rust_1_27");
7+
}
8+
}

0 commit comments

Comments
 (0)