Skip to content
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

Compiling rust-peer to wasm #108

Closed
Larkooo opened this issue Jan 22, 2024 · 1 comment
Closed

Compiling rust-peer to wasm #108

Larkooo opened this issue Jan 22, 2024 · 1 comment

Comments

@Larkooo
Copy link

Larkooo commented Jan 22, 2024

Would be cool if rust-peer could support compiling to wasm directly with wasm-pack (it currently fails) and exporting it as a node package or using it in the browser

@thomaseizinger
Copy link
Contributor

The current Rust node is designed as a bootstrapper and needs to listen on network interfaces. That is not possible in the browser.

We support WebTransport, WebRTC and WebSocket as transports in WASM but the usecases are different.

You could build a 2nd Rust peer that replicates what the JS peer does but compiling the current one to WASM doesn't really make sense to me.

@Larkooo Larkooo closed this as completed Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants