]> Repositorios git - scryer-prolog.git/commitdiff
Remove obsolete compatibility for Rust<1.80
authorDan Rose <[email protected]>
Thu, 22 May 2025 18:57:55 +0000 (13:57 -0500)
committerDan Rose <[email protected]>
Thu, 22 May 2025 19:00:42 +0000 (14:00 -0500)
Cargo.toml
src/machine/mod.rs

index ddcf79fd2fdac600cbf089947c4407afa93b2d65..e7b7f9307c623f4130c5ef47f4aed4cf34b92b64 100644 (file)
@@ -24,7 +24,6 @@ hostname = ["dep:hostname"]
 tls = ["dep:native-tls"]
 http = ["dep:warp", "dep:reqwest"]
 crypto-full = []
-"rust-version-1.80" = []
 
 [build-dependencies]
 indexmap = "2.3.0"
index da2ab6df53b87c0016e4e863c7207b98fb846891..d180f02dbf384e2bc88f5ac6b9e02246837ac531 100644 (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 {
     use indexmap::IndexMap;
     use std::sync::LazyLock;