mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
The `io::Write` trait is somewhat worthless, being implemented for nothing, yet `Read` remains fully functional. This also allows using its polyfills _without_ requiring `alloc`. Opportunity taken to make `schnorr-signatures` not require `alloc`. This will require a version bump before being published due to newly requiring the `alloc` feature be specified to maintain pre-existing behavior. Enables resolving https://github.com/monero-oxide/monero-oxide/issues/48.
28 lines
849 B
TOML
28 lines
849 B
TOML
[package]
|
|
name = "std-shims"
|
|
version = "0.1.5"
|
|
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.65"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
rustversion = { version = "1", default-features = false }
|
|
spin = { version = "0.10", default-features = false, features = ["use_ticket_mutex", "fair_mutex", "once", "lazy"] }
|
|
hashbrown = { version = "0.16", default-features = false, features = ["default-hasher", "inline-more"], optional = true }
|
|
|
|
[features]
|
|
alloc = ["hashbrown"]
|
|
std = ["alloc", "spin/std"]
|
|
default = ["std"]
|