mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
In the next commit we'll drop the `ahash` dependency in favor of directly calling `getrandom` to seed our hash tables. However, we'd like to depend on `getrandom` only on certain platforms *and* only when certain features (no-std) are set. This introduces an indirection crate to do so, allowing us to depend on it only when `no-std` is set but only depending on `getrandom` on platforms which it supports.
20 lines
848 B
TOML
20 lines
848 B
TOML
[package]
|
|
name = "no-std-check"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[features]
|
|
default = ["lightning/no-std", "lightning-invoice/no-std", "lightning-rapid-gossip-sync/no-std"]
|
|
|
|
[dependencies]
|
|
lightning = { path = "../lightning", default-features = false }
|
|
lightning-invoice = { path = "../lightning-invoice", default-features = false }
|
|
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync", default-features = false }
|
|
lightning-background-processor = { path = "../lightning-background-processor", features = ["futures"], default-features = false }
|
|
|
|
# Obviously lightning-transaction-sync doesn't support no-std, but it should build
|
|
# even if lightning is built with no-std.
|
|
lightning-transaction-sync = { path = "../lightning-transaction-sync", optional = true }
|
|
|
|
[patch.crates-io]
|
|
possiblyrandom = { path = "../possiblyrandom" }
|