Skip to content

Commit

Permalink
nimiq-utils: Introduce feature for stream module
Browse files Browse the repository at this point in the history
  • Loading branch information
hrxi committed Aug 16, 2024
1 parent 1a0dcf8 commit f3744bd
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ nimiq-primitives = { workspace = true, features = ["policy", "trie"] }
nimiq-serde = { workspace = true }
nimiq-time = { workspace = true }
nimiq-transaction = { workspace = true }
nimiq-utils = { workspace = true, features = ["merkle", "spawn", "time"] }
nimiq-utils = { workspace = true, features = ["futures", "merkle", "spawn", "time"] }
nimiq-zkp-component = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion handel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ nimiq-collections = { workspace = true }
nimiq-hash = { workspace = true }
nimiq-serde = { workspace = true }
nimiq-time = { workspace = true }
nimiq-utils = { workspace = true }
nimiq-utils = { workspace = true, features = ["futures"] }

[dev-dependencies]
nimiq-network-interface = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion tendermint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tokio = { version = "1.39", features = [
tokio-stream = "0.1"

nimiq-collections = { workspace = true }
nimiq-utils = { workspace = true }
nimiq-utils = { workspace = true, features = ["futures"] }
nimiq-time = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ workspace = true

[dependencies]
clear_on_drop = { version = "0.2", optional = true }
futures = { workspace = true }
futures = { workspace = true, optional = true }
hex = { version = "0.4", optional = true }
libp2p-identity = { version = "0.2", optional = true }
log = { workspace = true, optional = true }
Expand Down Expand Up @@ -51,6 +51,7 @@ nimiq-test-utils = { workspace = true }

[features]
crc = []
futures = ["dep:futures"]
key-rng = ["rand", "rand_core"]
key-store = ["log", "thiserror"]
libp2p = ["libp2p-identity"]
Expand Down
1 change: 1 addition & 0 deletions utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub mod tagged_signing;
#[cfg(feature = "time")]
pub mod time;

#[cfg(feature = "futures")]
pub mod stream;

mod sensitive;
Expand Down
2 changes: 1 addition & 1 deletion validator-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ tokio = { version = "1.39", features = ["rt"] }
nimiq-bls = { workspace = true, features = ["lazy", "serde-derive"] }
nimiq-network-interface = { workspace = true }
nimiq-serde = { workspace = true }
nimiq-utils = { workspace = true, features = ["spawn", "tagged-signing"] }
nimiq-utils = { workspace = true, features = ["futures", "spawn", "tagged-signing"] }
2 changes: 1 addition & 1 deletion validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ nimiq-serde = { workspace = true }
nimiq-tendermint = { workspace = true }
nimiq-time = { workspace = true }
nimiq-transaction-builder = { workspace = true }
nimiq-utils = { workspace = true, features = ["time"] }
nimiq-utils = { workspace = true, features = ["futures", "time"] }
nimiq-validator-network = { workspace = true }
nimiq-vrf = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion zkp-component/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ nimiq-network-interface = { workspace = true }
nimiq-primitives = { workspace = true, features = ["policy"] }
nimiq-serde = { workspace = true }
nimiq-transaction = { workspace = true }
nimiq-utils = { workspace = true, features = ["merkle", "spawn", "time"] }
nimiq-utils = { workspace = true, features = ["futures", "merkle", "spawn", "time"] }
nimiq-zkp = { workspace = true }
nimiq-zkp-circuits = { workspace = true }
nimiq-zkp-primitives = { workspace = true }
Expand Down

0 comments on commit f3744bd

Please sign in to comment.