mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-19 05:43:55 +01:00
0038a3f7de
This adds testing of the `futures` feature to CI. In order to avoid introducing a dependency on `std`, we switch to using the `futures-util` crate directly enabling only a subset of features. To this end, we also switch to using the `select_biased!` macro, which is equivalent to `select!` except that it doesn't choose ready futures pseudo-randomly at runtime.
29 lines
1.0 KiB
TOML
29 lines
1.0 KiB
TOML
[package]
|
|
name = "lightning-background-processor"
|
|
version = "0.0.111"
|
|
authors = ["Valentine Wallace <vwallace@protonmail.com>"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "http://github.com/lightningdevkit/rust-lightning"
|
|
description = """
|
|
Utilities to perform required background tasks for Rust Lightning.
|
|
"""
|
|
edition = "2018"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
futures = [ "futures-util" ]
|
|
|
|
[dependencies]
|
|
bitcoin = "0.29.0"
|
|
lightning = { version = "0.0.111", path = "../lightning", features = ["std"] }
|
|
lightning-rapid-gossip-sync = { version = "0.0.111", path = "../lightning-rapid-gossip-sync" }
|
|
futures-util = { version = "0.3", default-features = false, features = ["async-await-macro"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
lightning = { version = "0.0.111", path = "../lightning", features = ["_test_utils"] }
|
|
lightning-invoice = { version = "0.19.0", path = "../lightning-invoice" }
|
|
lightning-persister = { version = "0.0.111", path = "../lightning-persister" }
|