Skip to content

Commit dcc4aa2

Browse files
authored
Merge pull request #267 from dtolnay/checkcfg
Resolve unexpected_cfgs warning
2 parents 06fd547 + 778dd29 commit dcc4aa2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ categories = ["asynchronous", "no-std"]
66
description = "Type erasure for async trait methods"
77
documentation = "https://docs.rs/async-trait"
88
edition = "2021"
9+
exclude = ["build.rs"]
910
keywords = ["async"]
1011
license = "MIT OR Apache-2.0"
1112
repository = "https://github.com/dtolnay/async-trait"

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
// Warning: build.rs is not published to crates.io.
3+
4+
println!("cargo:rustc-check-cfg=cfg(async_trait_nightly_testing)");
5+
}

0 commit comments

Comments
 (0)