Skip to content
Open
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
170 changes: 169 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ flume = { version = "0.11.0" }
futures = { version = "0.3.30" }
gloo-timers = { version = "0.3.0" }
iroh = { version = "1.0.3" }
iroh-relay = { version = "1.0.3" }
itertools = { version = "0.14.0" }
js-sys = { version = "0.3.70" }
log = { version = "0.4.26" }
Expand Down
9 changes: 9 additions & 0 deletions crates/aeronet_iroh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
name = "iroh_peer"
path = "examples/iroh_peer.rs"

[features]
default = []
# Test helpers (`test_utils::run_test_relay`): spins up an in-process loopback
# Iroh relay for integration tests.
test-utils = ["dep:iroh-relay", "iroh-relay/server", "iroh-relay/test-utils"]

[dependencies]
aeronet_io = { workspace = true }
aeronet_tokio_runtime = { workspace = true }
Expand All @@ -28,11 +34,14 @@ bytes = { workspace = true }
derive_more = { workspace = true, features = ["display", "error"] }
futures = { workspace = true }
iroh = { workspace = true }
iroh-relay = { workspace = true, optional = true }
tracing = { workspace = true }

[dev-dependencies]
bevy = { workspace = true }
clap = { workspace = true }
tokio = { workspace = true }
aeronet_iroh = { path = ".", features = ["test-utils"] }

[lints]
workspace = true
2 changes: 2 additions & 0 deletions crates/aeronet_iroh/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ extern crate alloc;

pub mod endpoint;
pub mod session;
#[cfg(feature = "test-utils")]
pub mod test_utils;

use bevy_app::prelude::*;
pub use {aeronet_tokio_runtime::TokioRuntime as IrohRuntime, iroh};
Expand Down
Loading