Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1,397 changes: 1,229 additions & 168 deletions Cargo.lock

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = ["file-change-consumer", "file-change-router", "file-tree-merge", "file-watcher", "p2p-transfer"]
default-members = ["p2p-transfer"]

resolver = "2"

Expand All @@ -23,4 +24,16 @@ panic = "abort"
[workspace.dependencies]
colored = "2.1.0"
rayon = "^1.10.0"
anyhow = "1.0.80"
anyhow = "1.0.80"
[patch.crates-io]
Comment thread
mihneagrigore marked this conversation as resolved.
n0-watcher = { git = "https://github.com/anchalshivank/n0-watcher", branch = "feature/webrtc-wasm-support" }
netwatch = { git = "https://github.com/anchalshivank/net-tools", branch = "main" }
portmapper = { git = "https://github.com/anchalshivank/net-tools", branch = "main" }

[patch."https://github.com/anchalshivank/iroh"]
n0-watcher = { git = "https://github.com/anchalshivank/n0-watcher", branch = "feature/webrtc-wasm-support" }
netwatch = { git = "https://github.com/anchalshivank/net-tools", branch = "main" }
portmapper = { git = "https://github.com/anchalshivank/net-tools", branch = "main" }

[patch."https://github.com/anchalshivank/net-tools"]
n0-watcher = { git = "https://github.com/anchalshivank/n0-watcher", branch = "feature/webrtc-wasm-support" }
15 changes: 12 additions & 3 deletions p2p-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ wasm-bindgen = "0.2.100"
web-sys = "0.3.77"
tracing-wasm = "0.2.1"
console_error_panic_hook = "0.1.7"
tokio = "1.45.0"
js-sys = "0.3.77"
wasm-bindgen-futures = "0.4.50"
iroh = "0.35.0"
# Disable default features (metrics) to avoid pulling in portmapper/iroh-relay with tokio net
iroh = { git = "https://github.com/anchalshivank/iroh", branch = "feature/webrtc-wasm-support", default-features = false }
n0-future = "0.1.3"
# Content-addressed blob storage (BLAKE3 hashing)
blake3 = "1.5"

# Fix for getrandom WASM support
getrandom = { version = "0.3", features = ["wasm_js"] }
Expand All @@ -51,11 +53,16 @@ anyhow.workspace = true
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.11.8"
tokio = "1.45.0"
# Bao tree for BitTorrent-like verified streaming (merkle tree)
bao-tree = "0.15"

# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4.50"
web-sys = "0.3.70" # to access the DOM (to hide the loading text)
# Override tokio to exclude net feature for WASM
tokio = { version = "1.45.0", default-features = false, features = ["io-util", "macros", "sync", "rt"] }

[profile.release]
opt-level = 2 # fast and small wasm
Expand All @@ -66,11 +73,13 @@ opt-level = 2


[patch.crates-io]
n0-watcher = { git = "https://github.com/anchalshivank/n0-watcher", branch = "feature/webrtc-wasm-support" }
netwatch = { git = "https://github.com/anchalshivank/net-tools", branch = "main" }
portmapper = { git = "https://github.com/anchalshivank/net-tools", branch = "main" }

# If you want to use the bleeding edge version of egui and eframe:
# egui = { git = "https://github.com/emilk/egui", branch = "master" }
# eframe = { git = "https://github.com/emilk/egui", branch = "master" }

# If you fork https://github.com/emilk/egui you can test with:
# egui = { path = "../egui/crates/egui" }
# eframe = { path = "../egui/crates/eframe" }
2 changes: 1 addition & 1 deletion p2p-transfer/rust-toolchain
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# to the user in the error, instead of "error: invalid channel name '[toolchain]'".

[toolchain]
channel = "1.82" # Avoid specifying a patch version here; see https://github.com/emilk/eframe_template/issues/145
channel = "nightly" # Avoid specifying a patch version here; see https://github.com/emilk/eframe_template/issues/145
Comment thread
mihneagrigore marked this conversation as resolved.
components = [ "rustfmt", "clippy" ]
targets = [ "wasm32-unknown-unknown" ]
Loading
Loading