Skip to content

Commit 149a133

Browse files
Drop ancient Rust <1.31 support code and drop autocfg dependency
1 parent 1fab479 commit 149a133

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ categories = ["database"]
2222
duckdb = { version = "=1.3.0", path = "crates/duckdb" }
2323
libduckdb-sys = { version = "=1.3.0", path = "crates/libduckdb-sys" }
2424
duckdb-loadable-macros = { version = "=0.1.7", path = "crates/duckdb-loadable-macros" }
25-
autocfg = "1.0"
2625
bindgen = { version = "0.71.1", default-features = false }
2726
calamine = "0.22.0"
2827
cast = "0.3"

crates/libduckdb-sys/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ loadable-extension = ["prettyplease", "quote", "syn"]
2929
[dependencies]
3030

3131
[build-dependencies]
32-
autocfg = { workspace = true }
3332
bindgen = { workspace = true, features = ["runtime"], optional = true }
3433
flate2 = { workspace = true }
3534
pkg-config = { workspace = true, optional = true }

crates/libduckdb-sys/openssl/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
clippy::unusual_byte_groupings
1919
)]
2020

21-
extern crate autocfg;
2221
#[cfg(feature = "openssl_bindgen")]
2322
extern crate bindgen;
2423
extern crate cc;
@@ -107,8 +106,6 @@ pub fn get_openssl_v2() -> Result<(Vec<PathBuf>, PathBuf), ()> {
107106
}
108107

109108
fn get_openssl() -> Result<(Vec<PathBuf>, PathBuf), ()> {
110-
check_rustc_versions();
111-
112109
check_ssl_kind()?;
113110

114111
let target = env::var("TARGET").unwrap();
@@ -166,14 +163,6 @@ fn get_openssl() -> Result<(Vec<PathBuf>, PathBuf), ()> {
166163
Ok((lib_dirs, include_dir))
167164
}
168165

169-
fn check_rustc_versions() {
170-
let cfg = autocfg::new();
171-
172-
if cfg.probe_rustc_version(1, 31) {
173-
println!("cargo:rustc-cfg=const_fn");
174-
}
175-
}
176-
177166
#[allow(clippy::let_and_return)]
178167
fn postprocess(include_dirs: &[PathBuf]) -> Version {
179168
let version = validate_headers(include_dirs);

0 commit comments

Comments
 (0)