-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass through --weak-refs --reference-types flags to bindgen #937
Conversation
@serprex Thank you for putting this together. It appears that a patch is also required to I've been successfully building my project using:
But when I attempt to build with your fork I get:
|
Yes, I've disabled wasm-opt in my project because it raises errors about mutable global state not being allowed. I added reference-types since that exists in wasm bindgen, but am only actually using |
Any updates on this. This could be really useful. |
Can this one be merged? It could be really helpful. |
We've moved from running I used this opportunity to test out why Perhaps that's the change needed in this PR to get this merging? @serprex are you interested in adjusting this PR with my suggested change? |
@matheus23 updated. Unfortunately like you I've moved to bypassing wasm-pack in my build process a long time ago. Are you able to test this change is effective? |
@serprex Yes, confirming that this works 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks a lot!
Any updates on this PR? Running into this issue as well and would love to be able to pass in |
Yes, I'd love to see this merged & released as well! The tests seem to be failing due to this:
But that error happens with all recent PRs. Is there something else To-Do? Do we need to bump the version/write docs? Anything we can do to help this get pushed over the finish line? |
I think the tests just need to be fixed in order to create a new release with this and the other recently merged PRs. If someone would be interesting in debugging and make the tests pass it would be really nice! I don't got much time to debug it right now unfortunately... Another solution would be to revert the PR that caused the failing tests... |
I actually think there wasn't a PR that caused the failing tests, it was just the URLs for the binaryen stuff changing under our feet: Before/after: You can see that the top URL fails to load (it's the one from the failing test) and the bottom one loads successfully. I can see if I can create a PR. |
Any chance this can be merged soon? Kinda a waste to have to just bypass wasm-pack if features aren't available... |
For those coming across this issue, you can also set |
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package. (cherry picked from commit 31a4792)
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package. (cherry picked from commit 31a4792)
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package. (cherry picked from commit bc4876e)
Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package.
* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880) * ci: Fix invocation of test runs * ci: Fix remaining test execution --------- Co-authored-by: Tino Breddin <t@tolbrino.com> * chore(release): publish 1.93.1-next.7 * chore(release): publish Avado 0.200.0 * port: Release update riga/v1.92.12 (#4714) (#4888) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release update riga/v1.92.12 (#4714) * enhance address sorting (#4684) * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.1 * Docker: expose udp ports (#4686) * change Dockerfile and docker run commands * remove linting * remove linting * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.2 * enhance dht and libp2p config (#4685) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.0 * Fix NAT detection when running in GCP (#4692) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * fix gcp NAT detection * add changelog entry * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.1 * use native hopr STUN servers (#4703) * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.2 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * remove docs --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * Ignore errors if cachix fails (cherry picked from commit 0c61fbe) * Return the Riga version of webRTC * Add yarn changes * chore(release): publish 1.93.1-next.8 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.1-next.9 * Release upgrade bratislava/v1.93.1 (#4895) * Port changes in PR#4833 to release Bratislava to unblock CICD (#4880) * ci: Fix invocation of test runs * ci: Fix remaining test execution --------- Co-authored-by: Tino Breddin <t@tolbrino.com> * chore(release): publish 1.93.1-next.7 * chore(release): publish Avado 0.200.0 * port: Release update riga/v1.92.12 (#4714) (#4888) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release update riga/v1.92.12 (#4714) * enhance address sorting (#4684) * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.1 * Docker: expose udp ports (#4686) * change Dockerfile and docker run commands * remove linting * remove linting * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.2 * enhance dht and libp2p config (#4685) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.0 * Fix NAT detection when running in GCP (#4692) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * fix gcp NAT detection * add changelog entry * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.1 * use native hopr STUN servers (#4703) * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.2 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * remove docs --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * Ignore errors if cachix fails (cherry picked from commit 0c61fbe) * Return the Riga version of webRTC * Add yarn changes * chore(release): publish 1.93.1-next.8 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.1-next.9 --------- Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> * Re-generate API docs for packages * chore(release): publish 1.93.2 * chore(release): publish Avado 1.93.2 * Revert "Merge pull request #4892 from hoprnet/kauki/use-older-wbrtc-without-apple-sillicon-support-to-fix-inconsistencies" This reverts commit df5794d, reversing changes made to 0e5b0d9. * chore(release): publish 1.93.1-next.10 * chore(release): publish Avado 0.200.0 * [hotfix/bratislava] Use superlance to monitor hoprd memory usage (#4898) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Use superlance to monitor hoprd memory usage * Updated CHANGELOG.md * Updated .env file for docker-compose setup for Bratislava --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> * chore(release): publish 1.93.1-next.11 * chore(release): publish Avado 0.200.0 * Staging upgrade bratislava (#4896) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release upgrade bratislava/v1.93.1 (#4895) * Port changes in PR#4833 to release Bratislava to unblock CICD (#4880) * ci: Fix invocation of test runs * ci: Fix remaining test execution --------- Co-authored-by: Tino Breddin <t@tolbrino.com> * chore(release): publish 1.93.1-next.7 * chore(release): publish Avado 0.200.0 * port: Release update riga/v1.92.12 (#4714) (#4888) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release update riga/v1.92.12 (#4714) * enhance address sorting (#4684) * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.1 * Docker: expose udp ports (#4686) * change Dockerfile and docker run commands * remove linting * remove linting * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.2 * enhance dht and libp2p config (#4685) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.0 * Fix NAT detection when running in GCP (#4692) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * fix gcp NAT detection * add changelog entry * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.1 * use native hopr STUN servers (#4703) * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.2 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * remove docs --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * Ignore errors if cachix fails (cherry picked from commit 0c61fbe) * Return the Riga version of webRTC * Add yarn changes * chore(release): publish 1.93.1-next.8 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.1-next.9 --------- Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> * Re-generate API docs for packages * chore(release): publish 1.93.2 * chore(release): publish Avado 1.93.2 --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Lukas <lukas.pohanka@inina.net> * chore(release): update smart contract deployments * chore(release): publish 1.93.3-next.0 * chore(release): publish Avado 0.200.0 * Add --weak-ref to wasm-bindgen Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package. (cherry picked from commit bc4876e) * Add extern ref to the definitions * Revert "Migrate server-side relay code to Rust (#4726)" This reverts commit 3119cc5. * Fixes to make everything buildable * wasm: Enable external references * Add RelayState cleanup and set 2000 limit * ci: Add missing nix develop * chore(release): publish 1.93.3-next.1 * chore(release): publish Avado 0.200.0 * Added changelog entry * chore(release): publish 1.93.3-next.2 * chore(release): publish Avado 0.200.0 * Fix cachix install using nix * chore(release): publish 1.93.3-next.3 * chore(release): publish Avado 0.200.0 * Fix bug in recording metrics The metric was canceled, rather than properly recorded. * Remove inactive relay connections during the relay's keep-alive rounds (#4916) * Add relay connection pruning in the relay keepalive rounds * Fix inactive entry eviction * Updated CHANGELOG.md * Run linter * Add metric to monitor the inactive connection eviction rate * chore(release): publish 1.93.3-next.4 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.3 * Re-generate API docs for packages * chore(release): publish Avado 1.93.3 * chore(release): publish 1.93.4-next.0 * chore(release): publish Avado 0.200.0 * Fix `memmon` to properly monitor memory usage of HOPRd on Avado (#4944) * chore(release): publish 1.93.4-next.1 * wipe address manager cache (#4958) * wipe address manager cache * wipe observed addresses * Enforce closing and clean-up of libp2p2 connections (#4957) * Enforce closing of libp2p2 connection * Updated changelog * chore(release): publish 1.93.4-next.2 * add changelog entry (#4959) * chore(release): publish 1.93.4-next.3 * Set default value for DRY_RUN env variable in Avado build (#4960) * chore(release): publish 1.93.4-next.4 * chore(release): publish Avado 0.200.0 * enhance dialing logs (#5004) * enhance dialing logs * add changelog entry * Add metrics & logs relevant for RPCh debugging (#4995) * Add metrics & logs relevant for RPCh debugging * Update CHANGELOG * Reformat files * chore(release): publish 1.93.4-next.5 * chore(release): publish 1.93.4-next.6 * update contract addresses for stake season 7 * make prettier * Staking Season 7 contracts (#4906) * Stake season 7 and tests * update chainid to u64 * update start and end timestamp * block the same set of NFTs on start, as in s6 * Update readme with instruction on stake season transition * correct typo * replace specific contract address with general contract name * update test cases * hotfix fuzzy test * fix more tests due to foundry/#4827 * fix unit test suite (#5013) * chore(release): publish 1.93.4-next.7 * chore(release): publish 1.93.4-next.8 * chore(release): publish 1.93.4-next.9 * chore(release): publish 1.93.4 * Re-generate API docs for packages * Remove additional in install-toolchain.sh (#5024) * chore(release): publish 1.93.5 * chore(release): publish Avado 1.93.5 * remove libp2p * update cargo vendor * update cargo vendor * remove vendor * remove vendor * add vendor --------- Co-authored-by: QYuQianchen <10935300+QYuQianchen@users.noreply.github.com> Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Lukas <lukas.pohanka@inina.net>
* Port changes in PR#4833 to release Bratislava to unblock CICD (#4880) * ci: Fix invocation of test runs * ci: Fix remaining test execution --------- Co-authored-by: Tino Breddin <t@tolbrino.com> * chore(release): publish 1.93.1-next.7 * chore(release): publish Avado 0.200.0 * port: Release update riga/v1.92.12 (#4714) (#4888) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release update riga/v1.92.12 (#4714) * enhance address sorting (#4684) * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.1 * Docker: expose udp ports (#4686) * change Dockerfile and docker run commands * remove linting * remove linting * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.2 * enhance dht and libp2p config (#4685) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.0 * Fix NAT detection when running in GCP (#4692) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * fix gcp NAT detection * add changelog entry * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.1 * use native hopr STUN servers (#4703) * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.2 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * remove docs --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * Ignore errors if cachix fails (cherry picked from commit 0c61fbe) * Return the Riga version of webRTC * Add yarn changes * chore(release): publish 1.93.1-next.8 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.1-next.9 * Release upgrade bratislava/v1.93.1 (#4895) * Port changes in PR#4833 to release Bratislava to unblock CICD (#4880) * ci: Fix invocation of test runs * ci: Fix remaining test execution --------- Co-authored-by: Tino Breddin <t@tolbrino.com> * chore(release): publish 1.93.1-next.7 * chore(release): publish Avado 0.200.0 * port: Release update riga/v1.92.12 (#4714) (#4888) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release update riga/v1.92.12 (#4714) * enhance address sorting (#4684) * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.1 * Docker: expose udp ports (#4686) * change Dockerfile and docker run commands * remove linting * remove linting * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.2 * enhance dht and libp2p config (#4685) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.0 * Fix NAT detection when running in GCP (#4692) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * fix gcp NAT detection * add changelog entry * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.1 * use native hopr STUN servers (#4703) * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.2 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * remove docs --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * Ignore errors if cachix fails (cherry picked from commit 0c61fbe) * Return the Riga version of webRTC * Add yarn changes * chore(release): publish 1.93.1-next.8 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.1-next.9 --------- Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> * Re-generate API docs for packages * chore(release): publish 1.93.2 * chore(release): publish Avado 1.93.2 * Revert "Merge pull request #4892 from hoprnet/kauki/use-older-wbrtc-without-apple-sillicon-support-to-fix-inconsistencies" This reverts commit df5794d, reversing changes made to 0e5b0d9. * chore(release): publish 1.93.1-next.10 * chore(release): publish Avado 0.200.0 * [hotfix/bratislava] Use superlance to monitor hoprd memory usage (#4898) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Use superlance to monitor hoprd memory usage * Updated CHANGELOG.md * Updated .env file for docker-compose setup for Bratislava --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> * chore(release): publish 1.93.1-next.11 * chore(release): publish Avado 0.200.0 * Staging upgrade bratislava (#4896) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release upgrade bratislava/v1.93.1 (#4895) * Port changes in PR#4833 to release Bratislava to unblock CICD (#4880) * ci: Fix invocation of test runs * ci: Fix remaining test execution --------- Co-authored-by: Tino Breddin <t@tolbrino.com> * chore(release): publish 1.93.1-next.7 * chore(release): publish Avado 0.200.0 * port: Release update riga/v1.92.12 (#4714) (#4888) * chore(release): publish 1.93.1 * Re-generate API docs for packages * chore(release): publish Avado 1.93.1 * Release update riga/v1.92.12 (#4714) * enhance address sorting (#4684) * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.1 * Docker: expose udp ports (#4686) * change Dockerfile and docker run commands * remove linting * remove linting * chore(release): update smart contract deployments * chore(release): publish 1.92.11-next.2 * enhance dht and libp2p config (#4685) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.0 * Fix NAT detection when running in GCP (#4692) * enhance dht and libp2p config * add CHANGELOG entries * incorporate feedback * restore previous protocols * fix gcp NAT detection * add changelog entry * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.1 * use native hopr STUN servers (#4703) * chore(release): update smart contract deployments * chore(release): publish 1.92.12-next.2 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * remove docs --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * Ignore errors if cachix fails (cherry picked from commit 0c61fbe) * Return the Riga version of webRTC * Add yarn changes * chore(release): publish 1.93.1-next.8 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.1-next.9 --------- Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> * Re-generate API docs for packages * chore(release): publish 1.93.2 * chore(release): publish Avado 1.93.2 --------- Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Lukas <lukas.pohanka@inina.net> * chore(release): update smart contract deployments * chore(release): publish 1.93.3-next.0 * chore(release): publish Avado 0.200.0 * Add --weak-ref to wasm-bindgen Memory issues might be caused by an explicit need to deallocate JS objects on the Rust side, as per https://rustwasm.github.io/docs/wasm-bindgen/contributing/design/exporting-rust-struct.html. Given the proposal's (https://github.com/tc39/proposal-weakrefs) acceptance and wasm-pack supporting the flag (rustwasm/wasm-pack#937), it'd be future-proof and safer to use the --weak-ref flag for building every package. (cherry picked from commit bc4876e) * Add extern ref to the definitions * Revert "Migrate server-side relay code to Rust (#4726)" This reverts commit 3119cc5. * Fixes to make everything buildable * wasm: Enable external references * Add RelayState cleanup and set 2000 limit * ci: Add missing nix develop * chore(release): publish 1.93.3-next.1 * chore(release): publish Avado 0.200.0 * Added changelog entry * chore(release): publish 1.93.3-next.2 * chore(release): publish Avado 0.200.0 * Fix cachix install using nix * chore(release): publish 1.93.3-next.3 * chore(release): publish Avado 0.200.0 * Fix bug in recording metrics The metric was canceled, rather than properly recorded. * Remove inactive relay connections during the relay's keep-alive rounds (#4916) * Add relay connection pruning in the relay keepalive rounds * Fix inactive entry eviction * Updated CHANGELOG.md * Run linter * Add metric to monitor the inactive connection eviction rate * chore(release): publish 1.93.3-next.4 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.3 * Re-generate API docs for packages * chore(release): publish Avado 1.93.3 * chore(release): publish 1.93.4-next.0 * chore(release): publish Avado 0.200.0 * Fix `memmon` to properly monitor memory usage of HOPRd on Avado (#4944) * chore(release): publish 1.93.4-next.1 * wipe address manager cache (#4958) * wipe address manager cache * wipe observed addresses * Enforce closing and clean-up of libp2p2 connections (#4957) * Enforce closing of libp2p2 connection * Updated changelog * chore(release): publish 1.93.4-next.2 * add changelog entry (#4959) * chore(release): publish 1.93.4-next.3 * Set default value for DRY_RUN env variable in Avado build (#4960) * chore(release): publish 1.93.4-next.4 * chore(release): publish Avado 0.200.0 * enhance dialing logs (#5004) * enhance dialing logs * add changelog entry * Add metrics & logs relevant for RPCh debugging (#4995) * Add metrics & logs relevant for RPCh debugging * Update CHANGELOG * Reformat files * chore(release): publish 1.93.4-next.5 * chore(release): publish 1.93.4-next.6 * update contract addresses for stake season 7 * make prettier * Staking Season 7 contracts (#4906) * Stake season 7 and tests * update chainid to u64 * update start and end timestamp * block the same set of NFTs on start, as in s6 * Update readme with instruction on stake season transition * correct typo * replace specific contract address with general contract name * update test cases * hotfix fuzzy test * fix more tests due to foundry/#4827 * fix unit test suite (#5013) * chore(release): publish 1.93.4-next.7 * chore(release): publish 1.93.4-next.8 * chore(release): publish 1.93.4-next.9 * chore(release): publish 1.93.4 * Re-generate API docs for packages * Remove additional in install-toolchain.sh (#5024) * coerce libp2p addrs (#5020) * coerce to short addresses * update yarn files * add changelog entry * chore(release): publish 1.93.5 * chore(release): publish 1.93.4-next.10 * chore(release): publish Avado 1.93.5 * Staging upgrade Release Bratislava (#5027) * chore(release): publish 1.93.3 * Re-generate API docs for packages * chore(release): publish Avado 1.93.3 * chore(release): publish 1.93.4 * Re-generate API docs for packages * Remove additional in install-toolchain.sh (#5024) * chore(release): publish 1.93.5 * chore(release): publish Avado 1.93.5 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> * chore(release): publish 1.93.6-next.0 * migrate core (#4963) * initial commit * finish logic * cleanup * various enhancements * dynamic mutability * minor fixes * e2e tests working * cleanup & enhanced debugging * enhance debuggability * incorporate feedback * incorporate feedback * fix test * version bump * minor enhancements * incorporate feedback * chore(release): publish 1.93.4-next.10 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> * chore(release): publish 1.93.6-next.1 * fix libp2p address store (#5037) * fix libp2p address store * update yarn.lock * chore(release): publish 1.93.6-next.2 * tests: Add ws send recv test * api: Add send message over websocket * Update tests * Fix an issue with documentation error * Fix an issue file renaming * chore(release): publish 1.93.6-next.3 * [hotfix/bratislava] connect: Ensure public relay nodes don't create relay connections (#5023) * connect: Ensure public nodes don't create relay connections to public relay nodes * Update changelog * connect: Do not expose local and private addresses to DHT * core: Remove enabling dht server mode at runtime * Revert "core: Remove enabling dht server mode at runtime" This reverts commit 930454d63667f66a99d18ebbbd8ba3b43a240acf. * disable * api: Add websocket ping/pong heartbeat * Added changelog entry * fix comments & add cli argument --------- Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> * Revert "migrate core (#4963)" (#5050) This reverts commit 9f428f8. * chore(release): publish 1.93.6-next.4 * Increase memory limit for Avado to 2GB (#5051) * chore(release): publish 1.93.6-next.5 * prepare 1.93.6 (#5052) * dedupe and README fix * remove private folder names * chore(release): publish 1.93.6-next.6 * make known developmet private key explicit (#5057) * make known developmet private key explicit * improve SC test in response to strict order in event emission * chore(release): publish 1.93.6-next.7 * chore(release): publish 1.93.6-next.8 * release 1.93.6 (#5053) * coerce libp2p addrs (#5020) * coerce to short addresses * update yarn files * add changelog entry * chore(release): publish 1.93.4-next.10 * Staging upgrade Release Bratislava (#5027) * chore(release): publish 1.93.3 * Re-generate API docs for packages * chore(release): publish Avado 1.93.3 * chore(release): publish 1.93.4 * Re-generate API docs for packages * Remove additional in install-toolchain.sh (#5024) * chore(release): publish 1.93.5 * chore(release): publish Avado 1.93.5 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> * chore(release): publish 1.93.6-next.0 * migrate core (#4963) * initial commit * finish logic * cleanup * various enhancements * dynamic mutability * minor fixes * e2e tests working * cleanup & enhanced debugging * enhance debuggability * incorporate feedback * incorporate feedback * fix test * version bump * minor enhancements * incorporate feedback * chore(release): publish 1.93.4-next.10 --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> * chore(release): publish 1.93.6-next.1 * fix libp2p address store (#5037) * fix libp2p address store * update yarn.lock * chore(release): publish 1.93.6-next.2 * tests: Add ws send recv test * api: Add send message over websocket * Update tests * Fix an issue with documentation error * Fix an issue file renaming * chore(release): publish 1.93.6-next.3 * [hotfix/bratislava] connect: Ensure public relay nodes don't create relay connections (#5023) * connect: Ensure public nodes don't create relay connections to public relay nodes * Update changelog * connect: Do not expose local and private addresses to DHT * core: Remove enabling dht server mode at runtime * Revert "core: Remove enabling dht server mode at runtime" This reverts commit 930454d63667f66a99d18ebbbd8ba3b43a240acf. * disable * api: Add websocket ping/pong heartbeat * Added changelog entry * fix comments & add cli argument --------- Co-authored-by: Robert Kiel <robert.kiel@hoprnet.org> * Revert "migrate core (#4963)" (#5050) This reverts commit 9f428f8. * chore(release): publish 1.93.6-next.4 * Increase memory limit for Avado to 2GB (#5051) * chore(release): publish 1.93.6-next.5 * prepare 1.93.6 (#5052) * dedupe and README fix * remove private folder names * revert version bump --------- Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Lukas <lukas.pohanka@inina.net> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> * chore(release): publish 1.93.6 * chore(release): publish 1.93.7-next.0 * attempt1: add hopli to pluto * pluto: Fix docker image build * chore(release): publish 1.93.7-next.1 * npm: Stop publishing packages for hoprd * chore(release): publish 1.93.7-next.2 * chore(release): publish Avado 0.200.0 * chore(release): publish 1.93.7 * Re-generate API docs for packages * chore(release): publish Avado 1.93.7 * update vendor * update vendor * fix build * add all vendor files * fix gitignore & cargo vendor * fix gitignore & cargo vendor * fix code comment * fix build * fix build * fix python * make linter happy * fix makefile * fix unit test --------- Co-authored-by: QYuQianchen <10935300+QYuQianchen@users.noreply.github.com> Co-authored-by: Tino Breddin <t@tolbrino.com> Co-authored-by: HOPR CI robot <noreply@hoprnet.org> Co-authored-by: Tibor Csoka <9529609+Teebor-Choka@users.noreply.github.com> Co-authored-by: Tino Breddin <tino@hoprnet.org> Co-authored-by: Tino Breddin <tolbrino@users.noreply.github.com> Co-authored-by: Tibor Csóka <csokat@gmail.com> Co-authored-by: Lukas <lukas.pohanka@inina.net>
Fixes #930
Closes #888
I'm wondering if it'd make sense to have a --bind-gen-opts flag which allows the user to manually specify args to pass through