From 13620f14893f31d528bd414ad7b45ed07b6d8119 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Tue, 1 Oct 2024 12:23:30 +0200 Subject: [PATCH 1/2] Move MSRV to cargo.toml and remove build.rs This reworks MSRV detection logic, using the `rust-version` field in Cargo manifest. It allows dropping `build.rs` and removing the `version_check` build-dependency. Ref: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field --- Cargo.toml | 3 +-- build.rs | 16 ---------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 build.rs diff --git a/Cargo.toml b/Cargo.toml index 270c094..757bf66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ name = "rustfft" version = "6.2.0" authors = ["Allen Welkie ", "Elliott Mahler "] edition = "2018" +rust-version = "1.61" description = "High-performance FFT library written in pure Rust." documentation = "https://docs.rs/rustfft/" @@ -50,5 +51,3 @@ wasm-bindgen-test = "^0.3.36" # it probably isn't wise to stay on an old version for a long time, but we'll have to upgrade MSRV to upgrade bumpalo = "=3.14.0" -[build-dependencies] -version_check = "0.9" diff --git a/build.rs b/build.rs deleted file mode 100644 index 245a66a..0000000 --- a/build.rs +++ /dev/null @@ -1,16 +0,0 @@ -extern crate version_check; - -static MIN_RUSTC: &str = "1.61.0"; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); - match version_check::is_min_version(MIN_RUSTC) { - Some(true) => {} - Some(false) => panic!( - "\n====\nUnsupported rustc version {}\nRustFFT needs at least {}\n====\n", - version_check::Version::read().unwrap(), - MIN_RUSTC - ), - None => panic!("Unable to determine rustc version."), - }; -} From dce622dbdbb38a09fc36cd641f468ce2e51bcf68 Mon Sep 17 00:00:00 2001 From: Elliott Mahler Date: Thu, 12 Jun 2025 00:10:49 -0700 Subject: [PATCH 2/2] touching a file to hopefully re-trigger checks --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index fde8311..468e619 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,3 +58,4 @@ libc = "=0.2.163" # we don't need once_cell directly, but a dependency does, and version 1.21+ requires rustc 1.66+ # it probably isn't wise to stay on an old version for a long time, but we'll have to upgrade MSRV to upgrade once_cell = "=1.20.2" +