Shim std::sync::LazyLock for Rust < 1.80

Allows downgrading some crypto crates' MSRV to 1.79 as well.
This commit is contained in:
Luke Parker
2025-08-19 16:12:57 -04:00
parent f32e0609f1
commit 1b37dd2951
9 changed files with 46 additions and 10 deletions

View File

@@ -1,13 +1,13 @@
[package]
name = "std-shims"
version = "0.1.2"
version = "0.1.3"
description = "A series of std shims to make alloc more feasible"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/common/std-shims"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = ["nostd", "no_std", "alloc", "io"]
edition = "2021"
rust-version = "1.80"
rust-version = "1.70"
[package.metadata.docs.rs]
all-features = true
@@ -17,6 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"]
workspace = true
[dependencies]
rustversion = { version = "1", default-features = false }
spin = { version = "0.10", default-features = false, features = ["use_ticket_mutex", "once", "lazy"] }
hashbrown = { version = "0.14", default-features = false, features = ["ahash", "inline-more"] }