Files
serai/common/std-shims
Luke Parker e5ccfac19e Replace bespoke LazyLock/OnceLock with spin re-exports
Presumably notably slower on platforms with std, yet only when compiled with old
versions of Rust for which the option is this or no support anyways.
2025-08-19 18:10:33 -04:00
..
2025-08-19 17:40:19 -04:00

std shims

A crate which passes through to std when the default std feature is enabled, yet provides a series of shims when it isn't.

No guarantee of one-to-one parity is provided. The shims provided aim to be sufficient for the average case.

HashSet and HashMap are provided via hashbrown. Synchronization primitives are provided via spin (avoiding a requirement on critical-section). types are not guaranteed to be