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

feat(iroh-relay): Make the client side of iroh-relay compile & run in browsers #3119

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

matheus23
Copy link
Contributor

@matheus23 matheus23 commented Jan 10, 2025

Description

Allows compiling and running iroh-relay in browsers (as long as the server feature is disabled).

By default uses websockets to connect to relays when compiling for the wasm32-unknown-unknown target.
If configured to Protocol::Relay specifically, it'll error out.

Test it yourself: cargo rustc -p iroh-relay --no-default-features --target=wasm32-unknown-unknown --crate-type=cdylib

Breaking Changes

Notes & open questions

TODO

  • Add CI check to make sure the built .wasm is (import "env" ...)-free
  • Document that iroh-relay is wasm-buildable
  • Blocking this from merging: Need a new release of iroh-quinn with my browser PR in

Change checklist

  • Self-review.
  • All breaking changes documented.

@matheus23 matheus23 self-assigned this Jan 10, 2025
@matheus23 matheus23 changed the title feat: Make the client side of iroh-relay compile & run in browsers feat(iroh-relay): Make the client side of iroh-relay compile & run in browsers Jan 10, 2025
Copy link

github-actions bot commented Jan 10, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3119/docs/iroh/

Last updated: 2025-01-24T16:00:48Z

Copy link

github-actions bot commented Jan 10, 2025

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: c51b3a8

@matheus23 matheus23 added this to the v0.32.0 milestone Jan 13, 2025
@matheus23 matheus23 force-pushed the matheus23/iroh-relay-browser branch from 687d7bb to d3c1753 Compare January 14, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

1 participant