mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-28 08:01:15 +00:00
iroh hands all transports to noq as a single socket. Its poll_recv polls them in turn, and its sender drops a datagram whenever the selected transport is not ready. With traffic in both directions, noq counts these drops as loss, and throughput collapses. Each transport now is a noq AsyncUdpSocketNext with its own receive task. IP transports send on their own socket, and their config gives the noq route: the network as destinations, a bound address as source, and is_default. The relay and the custom transports each share one send-only socket that routes their mapped address range. A transport that is not ready returns Pending, and noq holds back only the paths on it. QUIC Initial packets still go to the remote state actor, which sends them on all known paths of the remote.
66 lines
2.4 KiB
TOML
66 lines
2.4 KiB
TOML
[workspace]
|
|
members = [
|
|
"iroh-base",
|
|
"iroh-dns",
|
|
"iroh-dns-server",
|
|
"iroh",
|
|
"iroh/bench",
|
|
"iroh-relay",
|
|
]
|
|
resolver = "2"
|
|
|
|
[profile.release]
|
|
debug = true
|
|
|
|
[profile.dev-ci]
|
|
inherits = 'dev'
|
|
opt-level = 1
|
|
|
|
[profile.optimized-release]
|
|
inherits = 'release'
|
|
debug = false
|
|
lto = true
|
|
debug-assertions = false
|
|
opt-level = 3
|
|
panic = 'abort'
|
|
incremental = false
|
|
|
|
[workspace.lints.rust]
|
|
missing_debug_implementations = "warn"
|
|
|
|
# We use this --cfg for documenting the cargo features on which an API
|
|
# is available. To preview this locally use: RUSTDOCFLAGS="--cfg
|
|
# iroh_docsrs" cargo +nightly doc --all-features. We use our own
|
|
# iroh_docsrs instead of the common docsrs to avoid also enabling this
|
|
# feature in any dependencies, because some indirect dependencies
|
|
# require a feature enabled when using `--cfg docsrs` which we can not
|
|
# do. To enable for a crate set `#![cfg_attr(iroh_docsrs,
|
|
# feature(doc_cfg))]` in the crate.
|
|
# We also have our own `iroh_loom` cfg to enable tokio-rs/loom testing.
|
|
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(iroh_docsrs)", "cfg(iroh_loom)", "cfg(skip_patchbay)"] }
|
|
|
|
[workspace.lints.clippy]
|
|
unused_async = "warn"
|
|
|
|
[workspace.metadata.cargo-semver-checks.lints]
|
|
enum_struct_variant_field_marked_deprecated = { required-update = "minor" }
|
|
enum_tuple_variant_field_marked_deprecated = { required-update = "minor" }
|
|
enum_variant_marked_deprecated = { required-update = "minor" }
|
|
function_marked_deprecated = { required-update = "minor" }
|
|
global_value_marked_deprecated = { required-update = "minor" }
|
|
macro_marked_deprecated = { required-update = "minor" }
|
|
proc_macro_marked_deprecated = { required-update = "minor" }
|
|
struct_field_marked_deprecated = { required-update = "minor" }
|
|
trait_associated_const_marked_deprecated = { required-update = "minor" }
|
|
trait_associated_type_marked_deprecated = { required-update = "minor" }
|
|
trait_marked_deprecated = { required-update = "minor" }
|
|
trait_method_marked_deprecated = { required-update = "minor" }
|
|
type_associated_const_marked_deprecated = { required-update = "minor" }
|
|
type_marked_deprecated = { required-update = "minor" }
|
|
type_method_marked_deprecated = { required-update = "minor" }
|
|
|
|
[patch.crates-io]
|
|
noq = { git = "https://github.com/n0-computer/noq", branch = "feat/multi-socket" }
|
|
noq-proto = { git = "https://github.com/n0-computer/noq", branch = "feat/multi-socket" }
|
|
noq-udp = { git = "https://github.com/n0-computer/noq", branch = "feat/multi-socket" }
|