Skip to content

Commit 8a77d1c

Browse files
committed
Add build script to rustc_attr because of cfg(version)
1 parent a3ee283 commit 8a77d1c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/librustc_attr/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ authors = ["The Rust Project Developers"]
33
name = "rustc_attr"
44
version = "0.0.0"
55
edition = "2018"
6+
build = "build.rs"
67

78
[lib]
89
name = "rustc_attr"

src/librustc_attr/build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
println!("cargo:rerun-if-changed=build.rs");
3+
println!("cargo:rerun-if-env-changed=CFG_VERSION");
4+
}

0 commit comments

Comments
 (0)