Skip to content

Commit

Permalink
WASM: use target-specific dependencies for spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
styppo committed May 10, 2024
1 parent 2dc85ca commit db345de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ rand = { version = "0.8", optional = true }
rand_core = { version = "0.6", optional = true }
serde = "1.0"
thiserror = { version = "1.0", optional = true }
tokio = { version = "1.37.0", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }

nimiq-collections = { workspace = true, optional = true }
nimiq-database-value = { workspace = true }
nimiq-hash = { workspace = true, optional = true }
nimiq-serde = { workspace = true }

[target.'cfg(not(target_family = "wasm"))'.dependencies]
tokio = { version = "1.37.0", optional = true }
[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen-futures = { version = "0.4", optional = true }

[dev-dependencies]
nimiq-keys = { workspace = true }
nimiq-serde = { workspace = true }
Expand Down

0 comments on commit db345de

Please sign in to comment.