mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 01:21:21 +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"
|
||||
either = "1.6.0"
|
||||
futures = "0.3.28"
|
||||
futures-timer = "3.0"
|
||||
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