Merge pull request #2965 from rotu/zygomorphic-puma

Remove obsolete compatibility for Rust<1.80
This commit is contained in:
Mark Thom
2025-05-27 22:18:47 -07:00
committed by GitHub
2 changed files with 0 additions and 27 deletions

View File

@@ -24,7 +24,6 @@ hostname = ["dep:hostname"]
tls = ["dep:native-tls"] tls = ["dep:native-tls"]
http = ["dep:warp", "dep:reqwest"] http = ["dep:warp", "dep:reqwest"]
crypto-full = [] crypto-full = []
"rust-version-1.80" = []
[build-dependencies] [build-dependencies]
indexmap = "2.3.0" indexmap = "2.3.0"

View File

@@ -118,32 +118,6 @@ fn current_dir() -> PathBuf {
} }
} }
#[cfg(not(feature = "rust-version-1.80"))]
mod libraries {
use indexmap::IndexMap;
use std::sync::OnceLock;
fn libraries() -> &'static IndexMap<&'static str, &'static str> {
static LIBRARIES: OnceLock<IndexMap<&'static str, &'static str>> = OnceLock::new();
LIBRARIES.get_or_init(|| {
let mut m = IndexMap::new();
include!(concat!(env!("OUT_DIR"), "/libraries.rs"));
m
})
}
pub(crate) fn contains(name: &str) -> bool {
libraries().contains_key(name)
}
pub(crate) fn get(name: &str) -> Option<&'static str> {
libraries().get(name).copied()
}
}
#[cfg(feature = "rust-version-1.80")]
mod libraries { mod libraries {
use indexmap::IndexMap; use indexmap::IndexMap;
use std::sync::LazyLock; use std::sync::LazyLock;