Make libp2p compile for wasm32-unkown-unknown (#2412)

* Make libp2p compile for wasm32-unkown-unknown

* Fix tests

* Add some crates
This commit is contained in:
Pierre Krieger
2019-04-29 16:07:40 +02:00
committed by Gavin Wood
parent ebbd6c8ec4
commit 0b6490854d
4 changed files with 36 additions and 6 deletions
+13
View File
@@ -78,6 +78,19 @@ test-linux-stable: &test
- time cargo test --all --release --verbose --locked
- sccache -s
check-web-wasm:
stage: test
image: tomaka/cargo-web:latest
allow_failure: true
only:
- master
script:
# WASM support is in progress. As more and more crates support WASM, we
# should add entries here.
- time cargo web build -p substrate-network-libp2p
- time cargo web build -p substrate-panic-handler
- time cargo web build -p substrate-peerset
.build-only: &build-only
only:
- master