Skip to content

Commit

Permalink
Resolve unexpected_cfgs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 6, 2024
1 parent 06fd547 commit ab7a198
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ categories = ["asynchronous", "no-std"]
description = "Type erasure for async trait methods"
documentation = "https://docs.rs/async-trait"
edition = "2021"
exclude = ["build.rs"]
keywords = ["async"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/async-trait"
Expand Down
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
// Warning: build.rs is not published to crates.io.

println!("cargo:rustc-check-cfg=cfg(async_trait_nightly_testing)");
}

0 comments on commit ab7a198

Please sign in to comment.