Skip to content

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

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

Merged
merged 23 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
515a5ea
`cargo check -p iroh-relay --no-default-features --target=wasm32-unkn…
matheus23 Jan 9, 2025
229620f
Fix all unused warnings
matheus23 Jan 9, 2025
302227c
refactor: Extract out `connect_relay.rs`
matheus23 Jan 10, 2025
3a5b15e
Patch in `iroh-metrics` `main` branch now
matheus23 Jan 13, 2025
d3c1753
Undo changes to `iroh/`
matheus23 Jan 13, 2025
af4ffcc
Implement `iroh_relay::time` module that mirrors `tokio::time` for wasm
matheus23 Jan 20, 2025
6fdd4f1
ci: Also check `iroh-relay` wasm builds
matheus23 Jan 20, 2025
d4ef90b
Mark `#[allow(unused)]` because rustc doesn't figure out `Decoder` an…
matheus23 Jan 20, 2025
402ba4e
Depend on `n0-future`
matheus23 Jan 24, 2025
7bb052b
`cargo make format`
matheus23 Jan 24, 2025
02862d3
Update `tokio-tungstenite`(`-wasm`) version
matheus23 Jan 24, 2025
817f36d
Use `n0-future` library
matheus23 Jan 24, 2025
38c0495
Remove unused `tokio-tungstenite` deps from iroh
matheus23 Jan 24, 2025
b4c4b5e
Make clippy happy
matheus23 Jan 24, 2025
cb0f66d
refactor: Don't even use `DnsResolver` in wasm
matheus23 Jan 27, 2025
daa33a0
Remove `allow(unused)`
matheus23 Jan 27, 2025
c71b623
Put `allow(unused)` back in & expose framing module
matheus23 Jan 27, 2025
426b6e3
chore: Remove `n0-future` crates.io patch
matheus23 Jan 27, 2025
cd883c2
ci: Check that `iroh-relay` Wasm build doesn't have `import "env"`
matheus23 Jan 27, 2025
28c9d5e
Update to iroh-quinn 0.13 and iroh-quinn-udp 0.5.7
matheus23 Jan 28, 2025
0c4e257
Remove unused dependencies
matheus23 Jan 28, 2025
026660c
Implement and use `Default for Protocol`
matheus23 Jan 28, 2025
a8db1f3
Remove `patch.crates-io` overrides
matheus23 Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,21 @@ jobs:
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown

- name: Install wasm-tools
uses: bytecodealliance/actions/wasm-tools/setup@v1

- name: wasm32 build (iroh-base)
run: cargo build -p iroh-base --all-features --target wasm32-unknown-unknown
run: cargo build --target wasm32-unknown-unknown -p iroh-base --all-features

- name: wasm32 build (iroh-relay)
run: cargo build --target wasm32-unknown-unknown -p iroh-relay --no-default-features

# If the Wasm file contains any 'import "env"' declarations, then
# some non-Wasm-compatible code made it into the final code.
- name: Ensure no 'import "env"' in iroh-relay Wasm
run: |
! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/iroh_relay.wasm | grep 'import "env"'


check_semver:
runs-on: ubuntu-latest
Expand Down
Loading
Loading