diff --git a/Cargo.toml b/Cargo.toml index 6a34bdc..1e5b52e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..7072aac --- /dev/null +++ b/build.rs @@ -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)"); +}