From bd52ef1fafc23e8e0404487ec728989c5641d1c2 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 1 Jan 2021 15:43:11 +0900 Subject: [PATCH] Remove build script from futures crate After #2299, this is no longer needed. --- futures/Cargo.toml | 3 --- futures/build.rs | 27 --------------------------- 2 files changed, 30 deletions(-) delete mode 100644 futures/build.rs diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 31b4df1f83..4711d05025 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -15,9 +15,6 @@ composability, and iterator-like interfaces. """ categories = ["asynchronous"] -[build-dependencies] -autocfg = "1" - [dependencies] futures-core = { path = "../futures-core", version = "0.3.8", default-features = false } futures-task = { path = "../futures-task", version = "0.3.8", default-features = false } diff --git a/futures/build.rs b/futures/build.rs deleted file mode 100644 index 25661aee45..0000000000 --- a/futures/build.rs +++ /dev/null @@ -1,27 +0,0 @@ -use autocfg::AutoCfg; - -// The rustc-cfg strings below are *not* public API. Please let us know by -// opening a GitHub issue if your build environment requires some way to enable -// these cfgs other than by executing our build script. -fn main() { - let cfg = match AutoCfg::new() { - Ok(cfg) => cfg, - Err(e) => { - println!( - "cargo:warning={}: unable to determine rustc version: {}", - env!("CARGO_PKG_NAME"), - e - ); - return; - } - }; - - // Note that this is `no_atomic_cas`, not `has_atomic_cas`. This allows - // treating `cfg(target_has_atomic = "ptr")` as true when the build script - // doesn't run. This is needed for compatibility with non-cargo build - // systems that don't run build scripts. - if !cfg.probe_expression("core::sync::atomic::AtomicPtr::<()>::compare_exchange") { - println!("cargo:rustc-cfg=no_atomic_cas"); - } - println!("cargo:rerun-if-changed=build.rs"); -}