Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Re-enable networking on wasm #4880

Merged
merged 10 commits into from
Feb 18, 2020
Merged

Re-enable networking on wasm #4880

merged 10 commits into from
Feb 18, 2020

Conversation

expenses
Copy link
Contributor

@expenses expenses commented Feb 10, 2020

Waiting for a new version of libp2p to be published that contains libp2p/rust-libp2p#1439.

@expenses expenses requested a review from mxinden as a code owner February 10, 2020 17:06
@expenses expenses requested a review from tomaka February 10, 2020 17:06
@tomaka
Copy link
Contributor

tomaka commented Feb 10, 2020

Looks good to me (assuming we switch back to a published version before merging)

@@ -8,6 +8,9 @@ edition = "2018"
license = "GPL-3.0"
default-run = "substrate"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasm-pack seems to be shipping with a broken wasm-opt. When I build the wasm binary on either the build server or my machine, it maxes out all the cores and doesn't seem to finish. Hopefully this'll get fixed soon.

Copy link
Contributor

@tomaka tomaka Feb 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have an issue for what you're talking about? Let's link to it to explain the line so that people can remove it in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing specific to this issue, but wasm-pack seems to be having a lot of problems with wasm-opt on linux, rustwasm/wasm-pack#782, rustwasm/wasm-pack#781 and the recent changes don't seem to have improved things.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please at least add a comment explaining what this line is for.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@tomaka tomaka mentioned this pull request Feb 14, 2020
@expenses expenses requested a review from tomaka February 17, 2020 11:09
@expenses
Copy link
Contributor Author

Sorry, forget to enable timeouts in telemetry too.

@gnunicorn
Copy link
Contributor

a fix has been merged on master. please update to latest master and lets try again.

@expenses expenses merged commit c1a03a6 into master Feb 18, 2020
@expenses expenses deleted the ashley-wasm-networking branch February 18, 2020 15:18
General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Feb 18, 2020
* Use noise and timeouts on wasm

* Don't use wasm-opt when compiling to wasm

* Forgot lockfile

* Add node about disabling wasm-opt

* Enable timeouts in telemetry on wasm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants