mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
d25c668ee4
lazy_static, if no_std environments were used, effectively required always using spin locks. This resolves the ergonomics of that while adopting Rust std code. no_std does still use a spin based solution. Theoretically, we could use atomics, yet writing our own Mutex wasn't a priority.
21 lines
495 B
TOML
21 lines
495 B
TOML
[package]
|
|
name = "std-shims"
|
|
version = "0.1.0"
|
|
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"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
spin = "0.9"
|
|
hashbrown = "0.14"
|
|
|
|
[features]
|
|
std = []
|
|
default = ["std"]
|