Skip to content

Commit bc2b560

Browse files
refactor: move ProtocolHandler impl
1 parent f87c3bf commit bc2b560

File tree

5 files changed

+408
-20
lines changed

5 files changed

+408
-20
lines changed

Cargo.lock

Lines changed: 84 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ iroh-base = { version = "0.27.0", features = ["redb"] }
2828
iroh-io = { version = "0.6.0", features = ["stats"] }
2929
iroh-metrics = { version = "0.27.0", default-features = false }
3030
iroh-net = { version = "0.27.0" }
31+
iroh-router = "0.27.0"
3132
num_cpus = "1.15.0"
3233
oneshot = "0.1.8"
3334
parking_lot = { version = "0.12.1", optional = true }
@@ -113,3 +114,9 @@ debug-assertions = false
113114
opt-level = 3
114115
panic = 'abort'
115116
incremental = false
117+
118+
[patch.crates-io]
119+
iroh-router = { git = "https://github.com/n0-computer/iroh", branch = "main" }
120+
iroh-net = { git = "https://github.com/n0-computer/iroh", branch = "main" }
121+
iroh-metrics = { git = "https://github.com/n0-computer/iroh", branch = "main" }
122+
iroh-base = { git = "https://github.com/n0-computer/iroh", branch = "main" }

deny.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ license-files = [
3434
ignore = [
3535
"RUSTSEC-2024-0370", # unmaintained, no upgrade available
3636
]
37+
38+
[sources]
39+
allow-git = [
40+
"https://github.com/n0-computer/iroh.git",
41+
]

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ pub mod format;
3535
pub mod get;
3636
pub mod hashseq;
3737
pub mod metrics;
38+
#[cfg(feature = "downloader")]
39+
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "downloader")))]
40+
pub mod net_protocol;
3841
pub mod protocol;
3942
pub mod provider;
4043
pub mod store;

0 commit comments

Comments
 (0)