mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 17:01:58 +00:00
feat(gossipsub): allow compiling for WASM
This modification removes deprecated dependency `wasm_timer` and enables wasm compatibility on the gossibsup protocol by simply substituting the `wasm_timer::Instant` with `instant::Instant`(which supports `fn checked_add`) and `wasm_timer::Interval` with `futures_ticker::Ticker`. Pull-Request: #3973.
This commit is contained in:
@@ -15,7 +15,7 @@ asynchronous-codec = "0.6"
|
||||
bimap = "0.6.3"
|
||||
futures = { version = "0.3", default-features = false, features = ["std"] }
|
||||
futures-timer = "3.0.2"
|
||||
instant = "0.1.11"
|
||||
instant = "0.1.12"
|
||||
libp2p-core = { workspace = true }
|
||||
libp2p-swarm = { workspace = true }
|
||||
libp2p-identity = { workspace = true }
|
||||
|
Reference in New Issue
Block a user