mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 00:01:26 +00:00
df0777a21ab2c19be86e4b7f0f60331f94a95a3b
2325
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
df0777a21a |
chore: update deps (#4006)
Also updates to the released netwatch and portmapper |
||
|
|
b32c927774 |
feat!: switch noq (#4005)
## Description Fully switches to the released noq version ## Breaking Changes Types are now reexportes from noq, internal names have been updated from quinn -> noq |
||
|
|
2494255cc7 |
fix(iroh): don't depend on the unused relays ff of pkarr (#4004)
## Description This can prevent pulling in `reqwest` updates needlessly from only depending on pkarr. --------- Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com> |
||
|
|
bf07082556 |
chore(iroh): Update noq commit, stop exposing AeadKey (#4003)
## Description Updates to the latest noq `main` branch. `noq` recently stopped exposing `trait AeadKey`, because the `trait HandshakeTokenKey` doesn't have a function returning `Box<dyn AeadKey>` anymore (instead it is left up to the implementation to use appropriate AEAD constructions with or without an HKDF in front). (Also fix the iroh unit test suite to allow compiling without the `metrics` feature.) ## Breaking Changes - Stop exposing `trait AeadKey` and change `trait HandshakeTokenKey` to implement `seal` and `open` on its own, leaving choice of using an HKDF to the user. |
||
|
|
82e0695933 |
fix(iroh-relay): Turn off nagle for relayed streams in iroh-relay servers (#3995)
## Description Fixes #3974 We already turn off nagle in iroh-relay clients. Turning it off in servers also seems sensible, given we mostly send around nicely-packaged data and aim for low latency. ## Notes & open questions Would love thoughts & experiences from others. I'm not sure how common setting this on servers is. We should probably also benchmark this. ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. |
||
|
|
766097b0c2 |
docs: fix typo in documentation comment for generate function (#4001)
## Description <!-- A summary of what this pull request achieves and a rough list of changes. --> Typo fix ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
a289f630d4 |
refactor(iroh): use combinator approach for address filtering (#3987)
## Description This changes the address filtering API added in #3960: Instead of having each service deal with the filtering, we layer this as a combinator on top. `AddressLookupBuilder` now has a `with_addr_filter` method with a default impl, and returns a `FilteredBuilder` which again impls `AddressLookupBuilder` itself. Through this, this all works transparently as currently, but the individual services don't need to care about the filtering at all. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions Are there any downsides? This would save people who impl address lookup services from having to deal with the filtering themselves. ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
0a89c812a9 |
chore(deps): bump the github-actions group with 5 updates (#3998)
Bumps the github-actions group with 5 updates: | Package | From | To | | --- | --- | --- | | [cargo-bins/cargo-binstall](https://github.com/cargo-bins/cargo-binstall) | `1.17.5` | `1.17.6` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3` | `4` | | [docker/login-action](https://github.com/docker/login-action) | `3` | `4` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `7` | `8` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `6` | `7` | Updates `cargo-bins/cargo-binstall` from 1.17.5 to 1.17.6 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cargo-bins/cargo-binstall/releases">cargo-bins/cargo-binstall's releases</a>.</em></p> <blockquote> <h2>v1.17.6</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <h4>In this release:</h4> <ul> <li>Fix infinite rate limit waiting (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2485">#2485</a>)</li> </ul> <h4>Other changes:</h4> <ul> <li>Upgrade dependencies</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/bc432b49369a3f25c8c8b19578a82060c18a5dd6"><code>bc432b4</code></a> release: cargo-binstall v1.17.6 (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2492">#2492</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/3ca7aae758696edfa05e481a9ffeb63e06ac5971"><code>3ca7aae</code></a> chore: release (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2487">#2487</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/2eebfe642b45acc8d8693a8d2c48cd168d73d6d4"><code>2eebfe6</code></a> Correctly parse <code>x-ratelimit-reset</code> as epoch timestamp or delta-seconds (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2485">#2485</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/22815b9471a4e82525ffa568a7800c2dbcef0a0e"><code>22815b9</code></a> build(deps): bump the deps group with 2 updates (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2491">#2491</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/a3e69f8507cbfc02cfcea37ce5637ca2c4877be1"><code>a3e69f8</code></a> build(deps): bump actions/upload-artifact from 6 to 7 (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2489">#2489</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/5a89ed30edccea6c69d18a63f84cc90e516dd5c9"><code>5a89ed3</code></a> build(deps): bump actions/download-artifact from 7 to 8 (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2488">#2488</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/af2e6a05c3622dd2e579a6992e6c5da390954630"><code>af2e6a0</code></a> dep: Upgrade transitive dependencies (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2490">#2490</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/693c0353146ccbad39f1109436e0dca2f7e42185"><code>693c035</code></a> dep: Upgrade transitive dependencies (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2486">#2486</a>)</li> <li>See full diff in <a href="https://github.com/cargo-bins/cargo-binstall/compare/v1.17.5...v1.17.6">compare view</a></li> </ul> </details> <br /> Updates `docker/setup-buildx-action` from 3 to 4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/setup-buildx-action/releases">docker/setup-buildx-action's releases</a>.</em></p> <blockquote> <h2>v4.0.0</h2> <ul> <li>Node 24 as default runtime (requires <a href="https://github.com/actions/runner/releases/tag/v2.327.1">Actions Runner v2.327.1</a> or later) by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/483">docker/setup-buildx-action#483</a></li> <li>Remove deprecated inputs/outputs by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/464">docker/setup-buildx-action#464</a></li> <li>Switch to ESM and update config/test wiring by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/481">docker/setup-buildx-action#481</a></li> <li>Bump <code>@actions/core</code> from 1.11.1 to 3.0.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/475">docker/setup-buildx-action#475</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.63.0 to 0.79.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/482">docker/setup-buildx-action#482</a> <a href="https://redirect.github.com/docker/setup-buildx-action/pull/485">docker/setup-buildx-action#485</a></li> <li>Bump js-yaml from 4.1.0 to 4.1.1 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/452">docker/setup-buildx-action#452</a></li> <li>Bump lodash from 4.17.21 to 4.17.23 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/472">docker/setup-buildx-action#472</a></li> <li>Bump minimatch from 3.1.2 to 3.1.5 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/480">docker/setup-buildx-action#480</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.12.0...v4.0.0">https://github.com/docker/setup-buildx-action/compare/v3.12.0...v4.0.0</a></p> <h2>v3.12.0</h2> <ul> <li>Deprecate <code>install</code> input by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/455">docker/setup-buildx-action#455</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.62.1 to 0.63.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/434">docker/setup-buildx-action#434</a></li> <li>Bump brace-expansion from 1.1.11 to 1.1.12 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/436">docker/setup-buildx-action#436</a></li> <li>Bump form-data from 2.5.1 to 2.5.5 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/432">docker/setup-buildx-action#432</a></li> <li>Bump undici from 5.28.4 to 5.29.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/435">docker/setup-buildx-action#435</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.11.1...v3.12.0">https://github.com/docker/setup-buildx-action/compare/v3.11.1...v3.12.0</a></p> <h2>v3.11.1</h2> <ul> <li>Fix <code>keep-state</code> not being respected by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/429">docker/setup-buildx-action#429</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.11.0...v3.11.1">https://github.com/docker/setup-buildx-action/compare/v3.11.0...v3.11.1</a></p> <h2>v3.11.0</h2> <ul> <li>Keep BuildKit state support by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/427">docker/setup-buildx-action#427</a></li> <li>Remove aliases created when installing by default by <a href="https://github.com/hashhar"><code>@hashhar</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/139">docker/setup-buildx-action#139</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.56.0 to 0.62.1 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/422">docker/setup-buildx-action#422</a> <a href="https://redirect.github.com/docker/setup-buildx-action/pull/425">docker/setup-buildx-action#425</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.10.0...v3.11.0">https://github.com/docker/setup-buildx-action/compare/v3.10.0...v3.11.0</a></p> <h2>v3.10.0</h2> <ul> <li>Bump <code>@docker/actions-toolkit</code> from 0.54.0 to 0.56.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/408">docker/setup-buildx-action#408</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.9.0...v3.10.0">https://github.com/docker/setup-buildx-action/compare/v3.9.0...v3.10.0</a></p> <h2>v3.9.0</h2> <ul> <li>Bump <code>@docker/actions-toolkit</code> from 0.48.0 to 0.54.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/402">docker/setup-buildx-action#402</a> <a href="https://redirect.github.com/docker/setup-buildx-action/pull/404">docker/setup-buildx-action#404</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.8.0...v3.9.0">https://github.com/docker/setup-buildx-action/compare/v3.8.0...v3.9.0</a></p> <h2>v3.8.0</h2> <ul> <li>Make cloud prefix optional to download buildx if driver is cloud by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/390">docker/setup-buildx-action#390</a></li> <li>Bump <code>@actions/core</code> from 1.10.1 to 1.11.1 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/370">docker/setup-buildx-action#370</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.39.0 to 0.48.0 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/389">docker/setup-buildx-action#389</a></li> <li>Bump cross-spawn from 7.0.3 to 7.0.6 in <a href="https://redirect.github.com/docker/setup-buildx-action/pull/382">docker/setup-buildx-action#382</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/setup-buildx-action/compare/v3.7.1...v3.8.0">https://github.com/docker/setup-buildx-action/compare/v3.7.1...v3.8.0</a></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/docker/setup-buildx-action/commit/4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd"><code>4d04d5d</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/485">#485</a> from docker/dependabot/npm_and_yarn/docker/actions-to...</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/cd74e05d9bae4eeec789f90ba15dc6fb4b60ae5d"><code>cd74e05</code></a> chore: update generated content</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/eee38ec7b3ed034ee896d3e212e5d11c04562b84"><code>eee38ec</code></a> build(deps): bump <code>@docker/actions-toolkit</code> from 0.77.0 to 0.79.0</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/7a83f65b5a215b3c81b210dafdc20362bd2b4e24"><code>7a83f65</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/484">#484</a> from docker/dependabot/github_actions/docker/setup-qe...</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/a5aa96747d67f62520b42af91aeb306e7374b327"><code>a5aa967</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/464">#464</a> from crazy-max/rm-deprecated</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/e73d53fa4ed86ff46faaf2b13a228d6e93c51af3"><code>e73d53f</code></a> build(deps): bump docker/setup-qemu-action from 3 to 4</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/28a438e9ed9ef7ae2ebd0bf839039005c9501312"><code>28a438e</code></a> Merge pull request <a href="https://redirect.github.com/docker/setup-buildx-action/issues/483">#483</a> from crazy-max/node24</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/034e9d37dd436b56b0167bea5a11ab731413e8cf"><code>034e9d3</code></a> chore: update generated content</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/b4664d8fd0ba15ff14560ab001737c666076d5be"><code>b4664d8</code></a> remove deprecated inputs/outputs</li> <li><a href="https://github.com/docker/setup-buildx-action/commit/a8257dec35f244ad06b4ff6c90fdd2ba97f262ba"><code>a8257de</code></a> node 24 as default runtime</li> <li>Additional commits viewable in <a href="https://github.com/docker/setup-buildx-action/compare/v3...v4">compare view</a></li> </ul> </details> <br /> Updates `docker/login-action` from 3 to 4 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/login-action/releases">docker/login-action's releases</a>.</em></p> <blockquote> <h2>v4.0.0</h2> <ul> <li>Node 24 as default runtime (requires <a href="https://github.com/actions/runner/releases/tag/v2.327.1">Actions Runner v2.327.1</a> or later) by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/929">docker/login-action#929</a></li> <li>Switch to ESM and update config/test wiring by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/927">docker/login-action#927</a></li> <li>Bump <code>@actions/core</code> from 1.11.1 to 3.0.0 in <a href="https://redirect.github.com/docker/login-action/pull/919">docker/login-action#919</a></li> <li>Bump <code>@aws-sdk/client-ecr</code> from 3.890.0 to 3.1000.0 in <a href="https://redirect.github.com/docker/login-action/pull/909">docker/login-action#909</a> <a href="https://redirect.github.com/docker/login-action/pull/920">docker/login-action#920</a></li> <li>Bump <code>@aws-sdk/client-ecr-public</code> from 3.890.0 to 3.1000.0 in <a href="https://redirect.github.com/docker/login-action/pull/909">docker/login-action#909</a> <a href="https://redirect.github.com/docker/login-action/pull/920">docker/login-action#920</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.63.0 to 0.77.0 in <a href="https://redirect.github.com/docker/login-action/pull/910">docker/login-action#910</a> <a href="https://redirect.github.com/docker/login-action/pull/928">docker/login-action#928</a></li> <li>Bump <code>@isaacs/brace-expansion</code> from 5.0.0 to 5.0.1 in <a href="https://redirect.github.com/docker/login-action/pull/921">docker/login-action#921</a></li> <li>Bump js-yaml from 4.1.0 to 4.1.1 in <a href="https://redirect.github.com/docker/login-action/pull/901">docker/login-action#901</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v3.7.0...v4.0.0">https://github.com/docker/login-action/compare/v3.7.0...v4.0.0</a></p> <h2>v3.7.0</h2> <ul> <li>Add <code>scope</code> input to set scopes for the authentication token by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/912">docker/login-action#912</a></li> <li>Add support for AWS European Sovereign Cloud ECR by <a href="https://github.com/dphi"><code>@dphi</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/914">docker/login-action#914</a></li> <li>Ensure passwords are redacted with <code>registry-auth</code> input by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/911">docker/login-action#911</a></li> <li>build(deps): bump lodash from 4.17.21 to 4.17.23 in <a href="https://redirect.github.com/docker/login-action/pull/915">docker/login-action#915</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v3.6.0...v3.7.0">https://github.com/docker/login-action/compare/v3.6.0...v3.7.0</a></p> <h2>v3.6.0</h2> <ul> <li>Add <code>registry-auth</code> input for raw authentication to registries by <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/887">docker/login-action#887</a></li> <li>Bump <code>@aws-sdk/client-ecr</code> to 3.890.0 in <a href="https://redirect.github.com/docker/login-action/pull/882">docker/login-action#882</a> <a href="https://redirect.github.com/docker/login-action/pull/890">docker/login-action#890</a></li> <li>Bump <code>@aws-sdk/client-ecr-public</code> to 3.890.0 in <a href="https://redirect.github.com/docker/login-action/pull/882">docker/login-action#882</a> <a href="https://redirect.github.com/docker/login-action/pull/890">docker/login-action#890</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.62.1 to 0.63.0 in <a href="https://redirect.github.com/docker/login-action/pull/883">docker/login-action#883</a></li> <li>Bump brace-expansion from 1.1.11 to 1.1.12 in <a href="https://redirect.github.com/docker/login-action/pull/880">docker/login-action#880</a></li> <li>Bump undici from 5.28.4 to 5.29.0 in <a href="https://redirect.github.com/docker/login-action/pull/879">docker/login-action#879</a></li> <li>Bump tmp from 0.2.3 to 0.2.4 in <a href="https://redirect.github.com/docker/login-action/pull/881">docker/login-action#881</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v3.5.0...v3.6.0">https://github.com/docker/login-action/compare/v3.5.0...v3.6.0</a></p> <h2>v3.5.0</h2> <ul> <li>Support dual-stack endpoints for AWS ECR by <a href="https://github.com/Spacefish"><code>@Spacefish</code></a> <a href="https://github.com/crazy-max"><code>@crazy-max</code></a> in <a href="https://redirect.github.com/docker/login-action/pull/874">docker/login-action#874</a> <a href="https://redirect.github.com/docker/login-action/pull/876">docker/login-action#876</a></li> <li>Bump <code>@aws-sdk/client-ecr</code> to 3.859.0 in <a href="https://redirect.github.com/docker/login-action/pull/860">docker/login-action#860</a> <a href="https://redirect.github.com/docker/login-action/pull/878">docker/login-action#878</a></li> <li>Bump <code>@aws-sdk/client-ecr-public</code> to 3.859.0 in <a href="https://redirect.github.com/docker/login-action/pull/860">docker/login-action#860</a> <a href="https://redirect.github.com/docker/login-action/pull/878">docker/login-action#878</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.57.0 to 0.62.1 in <a href="https://redirect.github.com/docker/login-action/pull/870">docker/login-action#870</a></li> <li>Bump form-data from 2.5.1 to 2.5.5 in <a href="https://redirect.github.com/docker/login-action/pull/875">docker/login-action#875</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v3.4.0...v3.5.0">https://github.com/docker/login-action/compare/v3.4.0...v3.5.0</a></p> <h2>v3.4.0</h2> <ul> <li>Bump <code>@actions/core</code> from 1.10.1 to 1.11.1 in <a href="https://redirect.github.com/docker/login-action/pull/791">docker/login-action#791</a></li> <li>Bump <code>@aws-sdk/client-ecr</code> to 3.766.0 in <a href="https://redirect.github.com/docker/login-action/pull/789">docker/login-action#789</a> <a href="https://redirect.github.com/docker/login-action/pull/856">docker/login-action#856</a></li> <li>Bump <code>@aws-sdk/client-ecr-public</code> to 3.758.0 in <a href="https://redirect.github.com/docker/login-action/pull/789">docker/login-action#789</a> <a href="https://redirect.github.com/docker/login-action/pull/856">docker/login-action#856</a></li> <li>Bump <code>@docker/actions-toolkit</code> from 0.35.0 to 0.57.0 in <a href="https://redirect.github.com/docker/login-action/pull/801">docker/login-action#801</a> <a href="https://redirect.github.com/docker/login-action/pull/806">docker/login-action#806</a> <a href="https://redirect.github.com/docker/login-action/pull/858">docker/login-action#858</a></li> <li>Bump cross-spawn from 7.0.3 to 7.0.6 in <a href="https://redirect.github.com/docker/login-action/pull/814">docker/login-action#814</a></li> <li>Bump https-proxy-agent from 7.0.5 to 7.0.6 in <a href="https://redirect.github.com/docker/login-action/pull/823">docker/login-action#823</a></li> <li>Bump path-to-regexp from 6.2.2 to 6.3.0 in <a href="https://redirect.github.com/docker/login-action/pull/777">docker/login-action#777</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/docker/login-action/compare/v3.3.0...v3.4.0">https://github.com/docker/login-action/compare/v3.3.0...v3.4.0</a></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/docker/login-action/commit/b45d80f862d83dbcd57f89517bcf500b2ab88fb2"><code>b45d80f</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/929">#929</a> from crazy-max/node24</li> <li><a href="https://github.com/docker/login-action/commit/176cb9c12abea98dfe844071c0999ff6ee9688a7"><code>176cb9c</code></a> node 24 as default runtime</li> <li><a href="https://github.com/docker/login-action/commit/cad89843109a11cb6f69f52fe695c42cf69d57d3"><code>cad8984</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/920">#920</a> from docker/dependabot/npm_and_yarn/aws-sdk-dependenc...</li> <li><a href="https://github.com/docker/login-action/commit/92cbcb231ed341e7dc71693351b21f5ba65f8349"><code>92cbcb2</code></a> chore: update generated content</li> <li><a href="https://github.com/docker/login-action/commit/5a2d6a71bd3e0cb4abb6faae33f3dde61ece8e5b"><code>5a2d6a7</code></a> build(deps): bump the aws-sdk-dependencies group with 2 updates</li> <li><a href="https://github.com/docker/login-action/commit/44512b6b2e08b878e82b107b394fcd1af5748e63"><code>44512b6</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/928">#928</a> from docker/dependabot/npm_and_yarn/docker/actions-to...</li> <li><a href="https://github.com/docker/login-action/commit/28737a5e46bc0c62910ef429b2e55f9cabbbd5df"><code>28737a5</code></a> chore: update generated content</li> <li><a href="https://github.com/docker/login-action/commit/dac079354afbd8db4c3b58b8cc6946573479b2a6"><code>dac0793</code></a> build(deps): bump <code>@docker/actions-toolkit</code> from 0.76.0 to 0.77.0</li> <li><a href="https://github.com/docker/login-action/commit/62029f315d6d05c8646343320e4a1552e5f1c77a"><code>62029f3</code></a> Merge pull request <a href="https://redirect.github.com/docker/login-action/issues/919">#919</a> from docker/dependabot/npm_and_yarn/actions/core-3.0.0</li> <li><a href="https://github.com/docker/login-action/commit/08c8f064bf22a1c55918ee608a81d87b13cc4461"><code>08c8f06</code></a> chore: update generated content</li> <li>Additional commits viewable in <a href="https://github.com/docker/login-action/compare/v3...v4">compare view</a></li> </ul> </details> <br /> Updates `actions/download-artifact` from 7 to 8 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p> <blockquote> <h2>v8.0.0</h2> <h2>v8 - What's new</h2> <h3>Direct downloads</h3> <p>To support direct uploads in <code>actions/upload-artifact</code>, the action will no longer attempt to unzip all downloaded files. Instead, the action checks the <code>Content-Type</code> header ahead of unzipping and skips non-zipped files. Callers wishing to download a zipped file as-is can also set the new <code>skip-decompress</code> parameter to <code>false</code>.</p> <h3>Enforced checks (breaking)</h3> <p>A previous release introduced digest checks on the download. If a download hash didn't match the expected hash from the server, the action would log a warning. Callers can now configure the behavior on mismatch with the <code>digest-mismatch</code> parameter. To be secure by default, we are now defaulting the behavior to <code>error</code> which will fail the workflow run.</p> <h3>ESM</h3> <p>To support new versions of the @actions/* packages, we've upgraded the package to ESM.</p> <h2>What's Changed</h2> <ul> <li>Don't attempt to un-zip non-zipped downloads by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/460">actions/download-artifact#460</a></li> <li>Add a setting to specify what to do on hash mismatch and default it to <code>error</code> by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/461">actions/download-artifact#461</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v7...v8.0.0">https://github.com/actions/download-artifact/compare/v7...v8.0.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/download-artifact/commit/70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3"><code>70fc10c</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/461">#461</a> from actions/danwkennedy/digest-mismatch-behavior</li> <li><a href="https://github.com/actions/download-artifact/commit/f258da9a506b755b84a09a531814700b86ccfc62"><code>f258da9</code></a> Add change docs</li> <li><a href="https://github.com/actions/download-artifact/commit/ccc058e5fbb0bb2352213eaec3491e117cbc4a5c"><code>ccc058e</code></a> Fix linting issues</li> <li><a href="https://github.com/actions/download-artifact/commit/bd7976ba57ecea96e6f3df575eb922d11a12a9fd"><code>bd7976b</code></a> Add a setting to specify what to do on hash mismatch and default it to <code>error</code></li> <li><a href="https://github.com/actions/download-artifact/commit/ac21fcf45e0aaee541c0f7030558bdad38d77d6c"><code>ac21fcf</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/460">#460</a> from actions/danwkennedy/download-no-unzip</li> <li><a href="https://github.com/actions/download-artifact/commit/15999bff51058bc7c19b50ebbba518eaef7c26c0"><code>15999bf</code></a> Add note about package bumps</li> <li><a href="https://github.com/actions/download-artifact/commit/974686ed5098c7f9c9289ec946b9058e496a2561"><code>974686e</code></a> Bump the version to <code>v8</code> and add release notes</li> <li><a href="https://github.com/actions/download-artifact/commit/fbe48b1d2756394be4cd4358ed3bc1343b330e75"><code>fbe48b1</code></a> Update test names to make it clearer what they do</li> <li><a href="https://github.com/actions/download-artifact/commit/96bf374a614d4360e225874c3efd6893a3f285e7"><code>96bf374</code></a> One more test fix</li> <li><a href="https://github.com/actions/download-artifact/commit/b8c4819ef592cbe04fd93534534b38f853864332"><code>b8c4819</code></a> Fix skip decompress test</li> <li>Additional commits viewable in <a href="https://github.com/actions/download-artifact/compare/v7...v8">compare view</a></li> </ul> </details> <br /> Updates `actions/upload-artifact` from 6 to 7 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/upload-artifact/releases">actions/upload-artifact's releases</a>.</em></p> <blockquote> <h2>v7.0.0</h2> <h2>v7 What's new</h2> <h3>Direct Uploads</h3> <p>Adds support for uploading single files directly (unzipped). Callers can set the new <code>archive</code> parameter to <code>false</code> to skip zipping the file during upload. Right now, we only support single files. The action will fail if the glob passed resolves to multiple files. The <code>name</code> parameter is also ignored with this setting. Instead, the name of the artifact will be the name of the uploaded file.</p> <h3>ESM</h3> <p>To support new versions of the <code>@actions/*</code> packages, we've upgraded the package to ESM.</p> <h2>What's Changed</h2> <ul> <li>Add proxy integration test by <a href="https://github.com/Link"><code>@Link</code></a>- in <a href="https://redirect.github.com/actions/upload-artifact/pull/754">actions/upload-artifact#754</a></li> <li>Upgrade the module to ESM and bump dependencies by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/upload-artifact/pull/762">actions/upload-artifact#762</a></li> <li>Support direct file uploads by <a href="https://github.com/danwkennedy"><code>@danwkennedy</code></a> in <a href="https://redirect.github.com/actions/upload-artifact/pull/764">actions/upload-artifact#764</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Link"><code>@Link</code></a>- made their first contribution in <a href="https://redirect.github.com/actions/upload-artifact/pull/754">actions/upload-artifact#754</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/upload-artifact/compare/v6...v7.0.0">https://github.com/actions/upload-artifact/compare/v6...v7.0.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/upload-artifact/commit/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f"><code>bbbca2d</code></a> Support direct file uploads (<a href="https://redirect.github.com/actions/upload-artifact/issues/764">#764</a>)</li> <li><a href="https://github.com/actions/upload-artifact/commit/589182c5a4cec8920b8c1bce3e2fab1c97a02296"><code>589182c</code></a> Upgrade the module to ESM and bump dependencies (<a href="https://redirect.github.com/actions/upload-artifact/issues/762">#762</a>)</li> <li><a href="https://github.com/actions/upload-artifact/commit/47309c993abb98030a35d55ef7ff34b7fa1074b5"><code>47309c9</code></a> Merge pull request <a href="https://redirect.github.com/actions/upload-artifact/issues/754">#754</a> from actions/Link-/add-proxy-integration-tests</li> <li><a href="https://github.com/actions/upload-artifact/commit/02a8460834e70dab0ce194c64360c59dc1475ef0"><code>02a8460</code></a> Add proxy integration test</li> <li>See full diff in <a href="https://github.com/actions/upload-artifact/compare/v6...v7">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
d434c85e1b |
feat: Implement custom transports (#3845)
## Description Adds user defined transports. Transports have to impl a dynable trait, currently named CustomTransport. Implementing this requires implementing another dynable trait CustomSender. Creating a transport requires implementing yet another dynable trait CustomTransportFactory. A custom addr is just an opaque blob with an u64 tranport id. Small blobs will be inlined, but that is an implementation detail. Formatting currently is "<id hex>-<data hex>" Replaces https://github.com/n0-computer/iroh/pull/3707 ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions - Question: encoding of custom addrs in DNS records. - Option 1: addr=1_a1b2c3 (tries to parse first as SocketAddr then as custom addr) - Option 2: custom=1_a1b2c3 (separate IrohAttr::Custom) - ~~Question: Feature gate or not? User transports require exposing a bit more of the guts, e.g. transmit fields, so we might want to put this behind a feature flag that is documented to be not part of the stable API.~~ - ~~Question: Path selection.~~ ~~Currently in select_best_path we never select an user path. For some reason it still works, but we probably should put in some logic there.~~ ```rust Some((transports::Addr::User(_), _)) => { // todo: when should we select an user path? None } ``` - DRY the different mapped addrs? ~~We could DRY the 2 differnet mapped addrs a bit more. But once you start with this you get into a rabbit hole. Should relay transports just be a special kind of custom transport? If we could abstract the logic when to choose the relay, this might work. Maybe this is best left for later.~~ Update: path selection is now taken care of. Basically each path gets a 2-tuple consisting of primary/secondary and biased rtt, then sort and take the best. There is an API to add a bias for each addr type and also to configure for each transport if it is a transport of last resort. Here is how to bias a transport: ```rust Endpoint::builder() .transport_bias( AddrKind::Custom(TEST_TRANSPORT_ID), TransportBias::primary().with_rtt_advantage(CUSTOM_TRANSPORT_RTT_ADVANTAGE)) .build().await?; ``` I also added some tests to make sure custom transports work if the ip transport is enabled. |
||
|
|
4033b3c545 |
chore(readme): Link to noq instead of Quinn (#3989)
## Description Link to noq instead of linking to Quinn as the QUIC library that iroh uses. |
||
|
|
523c93c1ba |
fix(iroh)!: reexport full dns module from iroh-relay (#3916)
## Description We currently only export some types from `iroh_relay::dns` as `iroh::dns`. This means if you *actually* want to customize the DNS resolver you have to add a dependency on `iroh_relay` to your crate, because several of the types needed are currently not exported from `iroh`. This fixes it by reexporting the whole `iroh_relay::dns` module as `iroh::dns`. Also fixes a few doccomments. ## Breaking Changes * `iroh::dns` now is a reexport of `iroh_relay::dns`. Everything public already was reexported from `iroh_relay::dns` so this should not actually be breaking. ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
ae4877e013 |
deps: Prefer portable_atomic over native AtomicU64 (#3994)
## Description On some 32 bit platforms there is no AtomicU64. Portable_atomic uses the underlying atomic on 64 bit platforms, so there is no perf overhead on those. We already have portable_atomic in the deps, from moka and once_cell. So there is no additional dependency cost. This is needed to get iroh to work on 32 bit platforms without native support for AtomicU64. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
086c6e8a5e |
deps: Remove process and signal tokio features (#3993)
## Description They are not needed except for the binary, and especially signal pulls in some stuff that causes trouble on some weird platforms. ## Breaking Changes None? I mean strictly speaking we could break a build since we now have fewer tokio features. But is that considered breaking? ## Notes & open questions Note: this is fallout from my (successful) attempt to get iroh to run on an ESP32. ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
e23f2f38b5 |
feat(iroh): proper span for endpoints (#3988)
## Description
* Adds a `endpoint{id=id_short}` info-level span when binding the
endpoint
* Use this span as parent span for RemoteStateActor tasks and the main
socket actor
* Alter a few logging statements here and there that stood out while
taking a good look at debug logs for the echo example. There's still
more work here of course.
## Breaking Changes
<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
## Notes & open questions
<!-- Any notes, remarks or open questions you have to make about the PR.
-->
## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
- [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
- [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
- [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
- [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
- [ ] [`sendme`](https://github.com/n0-computer/sendme)
|
||
|
|
138a8de8b4 |
chore(deps): bump cargo-bins/cargo-binstall from 1.16.5 to 1.17.5 in the github-actions group (#3958)
Bumps the github-actions group with 1 update: [cargo-bins/cargo-binstall](https://github.com/cargo-bins/cargo-binstall). Updates `cargo-bins/cargo-binstall` from 1.16.5 to 1.17.5 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cargo-bins/cargo-binstall/releases">cargo-bins/cargo-binstall's releases</a>.</em></p> <blockquote> <h2>v1.17.5</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <h4>In this release:</h4> <ul> <li>Automatically uses system-proxy (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2474">#2474</a>)</li> </ul> <h4>Other changes:</h4> <ul> <li>Upgrade dependencies</li> </ul> <h2>v1.17.4</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <h4>In this release:</h4> <ul> <li>Fix loading <code>--manifest-path Cargo.toml</code> (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2453">#2453</a> <a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2459">#2459</a>)</li> <li>Fix handling of <code>**</code> in <code>[workspace.members]</code> and <code>[workspace.members]</code> (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2465">#2465</a>)</li> <li>Added <code>pkg-fmt</code> field for cargo-binstall metadata to speed up binary discovery process (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2451">#2451</a>)</li> <li>Upgrade dependencies (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2468">#2468</a>)</li> </ul> <h4>Other changes:</h4> <ul> <li>Allow pinning binstall version in the action (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2449">#2449</a>)</li> <li>Fix changelog format (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2454">#2454</a>)</li> </ul> <h2>v1.17.3</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <h4>In this release:</h4> <ul> <li>Fix release pipeline (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2447">#2447</a>)</li> </ul> <h2>v1.17.2</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <h4>In this release:</h4> <ul> <li>Fix release pipeline for immutable release (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2445">#2445</a>)</li> </ul> <h2>v1.17.1</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <h4>In this release:</h4> <ul> <li>Fix release pipeline for immutable release (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2443">#2443</a>)</li> </ul> <h2>v1.17.0</h2> <p><em>Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for <code>cargo install</code> in most cases. Install it today with <code>cargo install cargo-binstall</code>, from the binaries below, or if you already have it, upgrade with <code>cargo binstall cargo-binstall</code>.</em></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/7691a5b29cda4f5499b819e5618012ba4b6c3334"><code>7691a5b</code></a> release: cargo-binstall v1.17.5 (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2484">#2484</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/0fabe8e23493d68620e2bacbe34bc1f986d0c36a"><code>0fabe8e</code></a> chore: release (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2475">#2475</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/bb5f71dcd0af1cb15948aa0fd89309161f332878"><code>bb5f71d</code></a> build(deps): bump the deps group with 2 updates (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2483">#2483</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/771dbaca45fc974fe110f1bab17dcde010ad2bdf"><code>771dbac</code></a> dep: Upgrade transitive dependencies (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2482">#2482</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/d0a4e390b96f15564c6f624ed480699f3f892302"><code>d0a4e39</code></a> dep: Upgrade transitive dependencies (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2480">#2480</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/5bc2b72d6752f51afc7f9ad1cc0dfa0bf47fe978"><code>5bc2b72</code></a> build(deps): bump time from 0.3.46 to 0.3.47 (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2479">#2479</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/1c89c6801054f6bf7b319c1c2fabb7091853e0f7"><code>1c89c68</code></a> build(deps): bump bytes from 1.11.0 to 1.11.1 (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2478">#2478</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/30401706622b4c0bf9df9f559db816227bad9fe1"><code>3040170</code></a> Fix msrv issues in cargo-toml-workspace (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2477">#2477</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/1573c71f7a000e29578e78b3b6de661a87f57ee9"><code>1573c71</code></a> Enable features system-proxy and charset of reqwest by default (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2474">#2474</a>)</li> <li><a href="https://github.com/cargo-bins/cargo-binstall/commit/145e6770368e3e396c29467d0e2376c001d60870"><code>145e677</code></a> dep: Upgrade transitive dependencies (<a href="https://redirect.github.com/cargo-bins/cargo-binstall/issues/2472">#2472</a>)</li> <li>Additional commits viewable in <a href="https://github.com/cargo-bins/cargo-binstall/compare/v1.16.5...v1.17.5">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com> |
||
|
|
dd381a1b2b |
refactor(iroh): Avoid rustls feature flag use in resolver.rs (#3985)
## Description - The `ring` and `aws-lc-rs` and other feature flags will go away in rustls 0.24 (the next release). So this code will stop working at that point and need to be migrated. - We already have everything we need: `iroh-base` keys already implement public keys and signing. - Removes a bunch of `.expect`s that we don't need anymore. This is work towards #3978 |
||
|
|
d33a32f986 |
feat(iroh)!: add address filtering and reordering for Address Lookup Services (#3960)
# Address Filtering for Address Lookup Services ## Why ### The Context [PR #3691](https://github.com/n0-computer/iroh/pull/3691) surfaced an assumption mismatch between users and iroh's address lookup service. This user expected that relay URLs were being published over mDNS and could not understand why connections weren't being established. We never considered publishing relay URLs on mDNS internally and so our implementation only publishes ip addresses and user defined data. It turned out there was a valid reason the user needed this: their environment had a firewall that permitted broadcast UDP traffic (which mDNS uses) but blocked other kinds of UDP traffic. So mDNS address lookup was working, but without a relay URL in the advertisement, the two endpoints had no way to reach each other — direct connections were blocked and there was no relay fallback advertised. The fix for their use case was to include the relay URL in mDNS advertisements. This incident revealed that we had left the choice of what to and not to publish to the address lookup implementations entirely, and didn't leave room for the possibility/flexibility that users may have specific needs while advertising their addresses. ### Custom Transports Make This Worse The upcoming Custom Transports feature will introduce a `Custom(CustomAddr)` variant to `TransportAddr`, allowing users to plug in arbitrary transport layers (e.g., Bluetooth). This sharpens the problem: - Users may want to advertise a custom transport address on one address lookup service but not another. - Most of our existing address lookup services are built on top of DNS TXT records, which have hard byte-size limits. Custom transport addresses will likely need to be encoded into these records, and there may simply not be room for all of them, and we have no guidelines on what to do if this happens. - There is no current mechanism for users to express preferences about which addresses get published where. This is manageable — an address lookup service can document its constraints and make best-effort decisions about what it can fit — but we need to give users a way to participate in that decision. For example, in a byte-constrained mDNS advertisement, a user might want to ensure their preferred custom transport address is published first, rather than leaving the ordering up to the address lookup service itself. ### So What Do We Need? We need a mechanism that: 1. Makes it clear to users that they can influence which addresses each address lookup service publishes. 2. Makes it clear to address lookup implementors that they need to reckon with publishing addresses that are not just IP addrs. 3. Still allows each address lookup service to make its own final decisions about what it can actually publish, given its own constraints. The fourth and nice-to-have would be some way to force the address lookup implementors into ensuring they have good documentation about the preference of the address lookup service when it comes to illustrating what it can and cannot publish (in terms of kind of addresses as well as number of addresses). Haven't figured this out, so it may just be that we lead by example and have good documentation ourselves. --- ## What ### Proposed Design We introduce a concrete `AddrFilter` type and add required methods to the ~~`AddressLookup` and~~ `IntoAddressLookup` trait~~s~~ that ensures every address lookup implementation accepts a filter. Whether or not they use/respect the filter, is not something we can control in this setup, but it at least gives the expectation that we expect it. #### `AddrFilter` ```rust /// A filter and/or reordering function applied to transport addresses before publishing. /// /// Takes the full set of transport addresses and returns them as an ordered `Vec`, /// allowing both filtering (by omitting addresses) and reordering (by controlling /// the output order). A `BTreeSet` cannot preserve a custom order, so the return /// type is `Vec` to make reordering possible. /// /// See the documentation for each address lookup implementation for details on /// what additional filtering the implementation may perform on top. // KASEY: /// Our recommendation would be that the address lookup service will apply this /// before its own internal filtering, before it publishes. #[derive(Clone)] pub struct AddrFilter( Arc<dyn Fn(BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static> ); impl AddrFilter { // KASEY: I don't know if this is necessary, but would likely make it nicer to // work with pub fn new( f: impl Fn(BTreeSet<TransportAddr>) -> Vec<TransportAddr> + Send + Sync + 'static ) -> Self { Self(Arc::new(f)) } // KASEY: I don't know if this is necessary, but would likely make it nicer to // work with pub fn apply(&self, addrs: BTreeSet<TransportAddr>) -> Vec<TransportAddr> { (self.0)(addrs) } } ``` #### Changes to `IntoAddressLookup` We need to be able to add the `AddrFilter` when building the discovery service. To do this, we can add a required `with_addr_filter` method is added to `IntoAddressLookup` ```rust pub trait IntoAddressLookup: std::fmt::Debug + Send + Sync + 'static { /// Sets the address filter for this address lookup service. fn with_addr_filter(self, filter: AddrFilter) -> Self where Self: Sized; fn into_address_lookup( self, endpoint: &Endpoint, ) -> Result<impl AddressLookup, IntoAddressLookupError>; } ``` #### Usage What would this look like? ```rust endpoint .address_lookup(PkarrPublisher::n0_dns() .with_addr_filter(AddrFilter::new(|addrs| { // only publish relay and IP addresses to pkarr, not custom transports, // returned as a Vec to allow reordering addrs.into_iter() .filter(|a| !matches!(a, TransportAddr::Custom(_))) .collect::<Vec<_>>() }))) .address_lookup(MyBluetoothLookup::new()) // handles Custom addrs internally ``` --- ## Alternatives ### We also change the `AddressLookup` trait to require a `set_addr_filter`. It's likely we only need to set this once, when the address lookup is built. BUT if we want to give users the ability to adjust this dynamically, it may be best to also add a `set_addr_filter` or `with_addr_filter` method on the `AddressLookup` trait itself. However, the user would need to hold onto a reference/clone of the address lookup service themselves, since calling this on `ep.address_lookup().with_addr_filter` would likely mean setting that specific filter to all the different lookup services that exists. But maybe we want that functionality too! ### Each address lookup system has its own builder methods, no trait change Each address lookup service builder could independently add a filter method to its own builder. No changes to the traits would be required. I rejected this because it meant no consistency and no way to enforce even limited consistency/expectations. Users have no reason to expect filtering to be available or to look for it and address lookup service implementators get no guidance. ### This isn't a concern for the address lookup services at all - but for the endpoint The other option is that this isn't a setting on the address lookup service, but is instead a setting on the endpoint. There are two issues here, I believe. First, this would likely mean having a single blanket filter/reduce, so the user can't customize it per-address lookup. Second, since `publish` expects an `EndpointAddr` with a `BTreeSet<TransportAddr>` we cannot preserve order once we turn the vec back into a btreeset. The other other option would be then to adjust the field in the `EndpointAddr` to be a vec, but I don't think we want that? ### Do something weird with `Ord` and `TransportAddr` Tbh I'm not sure where you would start with this, since you would want it to be user supplied... ### Other options? I am open to hearing them :) --- ## Potential issues ### This gives tools and expectations, not guarantees The `AddrFilter` mechanism gives users a way to express intent — "these are the addresses I want published to this service" — and creates the expectation that the address lookup service will use it. But the address lookup service is the final authority over what it actually publishes, so it could decide not to use the user supplied filter and can decide for itself what addresses it wants to publish. But likely, this is for the best. Address lookup services can have structural constraints the user cannot override. Eg, An address lookup service that encodes addresses as DNS TXT records cannot publish infinite `CustomAddr` variants it needs to be able to confidently only publish what it can. Other services may have reasons they can't publish them entirely. ### But this also means we should have a lot of documentation about our expectations. The filter application should be consistent across all implementation: 1. The user-provided `AddrFilter` is applied first. 2. The address lookup service's own internal filtering is applied second. Also, every address lookup implementation should document: - Whether and how the user-provided `AddrFilter` is applied. - What additional internal filtering the implementation applies (e.g., "only relay URLs are published; direct addresses are dropped regardless of the filter"). - Any capacity limits that may cause addresses to be dropped even after filtering (e.g., "only the first N addresses are published due to DNS TXT record size constraints"). - When capacity limits exist, whether addresses are dropped silently or with a warning log. The goal is that a user reading the documentation for any address lookup service can predict exactly what will be published, without reading the source. ## Feedback I'd love a way to have more guarantees here, but I haven't figured out the structure that would allow it. In fact, potentially the fact that this isn't a 100% rigid structure may actually be beneficial for some address lookup services. ## Behavior Changes By default, no address lookup service applies any filtering — all addresses are passed through to publishing as-is. Filtering only occurs if an `AddrFilter` is explicitly set, either via a preset or a user-supplied closure. This is a breaking change for Pkarr publishing, which checked to see if a relay url existed, and if so, cleared all ip addresses, and Dht publishing, which had an explicit `include_direct_addresses` option. For users using our defaults, this will not effect them. For users that have relays disabled, this will effect them if they use the default n0 preset, BUT, likely this will not effect most, because a user that has disabled relays they probably have not used the default n0 preset, and instead used the `empty_builder` and built whatever address lookup services they needed on their own. #### Presets Since we are leaving the choice for what to publish to the users, I've updated the Presets to include that the default explicitly filters address to only include the relay url. This is the same behaviour as before, but needed to be updated because the option to `include_direct_addresses` for, eg `DhtAddressLookup`, was removed. **New preset: N0DisabledRelay** I added a new preset that filters relays from published addresses and sets the relay mode to disabled. Not married to keeping it, but could be a good shorthand for folks. Did not add this as an option on the Endpoint::builder (eg Endpoint::disabled_relay_builder), however. ## Breaking Changes - `iroh` - `removed` - `DhtAddressLookupBuilder::include_direct_addresses` removed. You can effect what addresses are published by using the new `DhtAddressLookupBuilder::set_addr_filter` method. - `changed` - trait `IntoAddressLookup` renamed to `AddressLookupBuilder` ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: “ramfox” <“kasey@n0.computer”> Co-authored-by: Rüdiger Klaehn <rklaehn@protonmail.com> |
||
|
|
abc349c88f |
feat(iroh): more precise information about incoming connections (#3949)
## Description Provide more precise information about incoming connections. Instead of exposing the synthetic IPV6 addr for relay connections, we translate it to a special enum IncomingAddr that has all available info for a rate limiter or access control component to make a decision. Implements https://github.com/n0-computer/iroh/issues/3948 ## Breaking Changes endpoint::Incoming::remote_address renamed to remote_addr, and returns IncomingAddr. endpoint::Incoming::remote_address_validated renamed to remote_addr_validated. ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
ba4ee62972 |
feat: allow to customize TLS trust roots (#3973)
## Description This adds customization to how certificates for non-iroh TLS connections are verified. It adds a new `CaRootsConfig` struct which provides these options: * Embedded WebPki roots (like currently), with optional extra roots * Operating system's roots, with optional extra roots * Custom list of roots only * No verification (gated behind `test-utils` feature, like now) This struct can be built into a `rustls::ClientConfig`, which is then used for: * Connecting to relays, both HTTPS probes, QAD, and actual WebSocket connections * Connecting to pkarr servers * In the DNS resolver, if DNS-over-HTTPS is configured I think that's all places where we use TLS connections in iroh. Will have another look if we missed any. ## Breaking Changes Removed: * `iroh::endpoint::Builder::insecure_skip_cert_verify`, use `Builder::ca_roots_config(CaRootsConfig::insecure_skip_verify())` instead * `iroh_relay::client::ClientBuilder::insecure_skip_cert_verify`, remove `ClientBuilder::tls_client_config` instead * `iroh::address_lookup::pkarr::PkarrResolverBuilder::build` and `iroh::address_lookup::pkarr::PkarrPublisherBuilder::build` now take a `tls_config: rustls::ClientConfig` arg. If building via `Endpoint::add_discovery` or `endpoint::Builder::discovery` no change is needed since the TLS config is passed from the endpoint builder. If constructing manually for some reason, either pass `Endpoint::tls_config` or construct a TLS config yourself, e.g. via `iroh::tls::CaRootsConfig::client_config`. ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. - [x] List all breaking changes in the above "Breaking Changes" section. |
||
|
|
1c5bd5bf0a |
refactor: add doc comments, move code around, rename (#3977)
## Description I can't work with obscure names that seem obvious to the persons writing them, so add doc comments explaining how things works. The RemoteStateActor did get a bit messy from all the changes. Make functions follow the naming conventions again, move them to their more logically grouped places and rename and document for clarity. Finally netmon, netwatch etc are all just meaningless names to me. Even after all this time. Name the variables and fields after the information they actually contain. ## Breaking Changes n/a ## Notes & open questions This is all noise from #3928 that I'm splitting off so that that PR can contain just the relevant changes (and is easier to rebase/merge main). ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. |
||
|
|
1e4a738b81 |
deps: Upgrade away from yanked crate (#3982)
## Description n/a ## Breaking Changes n/a ## Notes & open questions n/a ## Change checklist - [x] Self-review. |
||
|
|
1ffb560208 |
refactor: update quinn and simplify path handling in RemoteStateActor (#3967)
## Description * Bumps iroh-quinn to `main` as of now. * In the `RemoteStateActor`'s `ConnectionState` only track open paths. We never accessed the list of non-open paths, so it seems much simpler to me to only track what we need. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
5d9ac048df |
examples(iroh): improve transfer example with qlog flag and timestamp for JSON output (#3964)
## Description Two changes to the transfer example: * When `--logs` or `--logs-path` is set, and `qlog` feature is enabled, don't *always* create qlog but only if `--qlog` flag is set. Otherwise there's no way to build with all features and set `--logs` but disable qlog. For perf tests you want to disable qlog usually, but its annoying to not be able to build with `--all-features` and set `--logs` or `--logs-path`. * Add timestamp to JSON output ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|
|
f628359990 |
deps: bump wasm-bindgen-test (#3966)
## Description Updates `wasm-bindgen-test`, which also bumps `wasm-bindgen`. Makes wasm CI pass again, reason for failure was likely mismatch between `wasm-bindgen-cli` latest version (via cargo install in CI) and version in lockfile. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
6650c780e7 |
chore(ci): Add text summary for discord notification (#3962)
## Description The supposed-to-be-uniform summary helps me quickly scan the results of the notifications on discord. ## Breaking Changes n/a ## Notes & open questions n/a ## Change checklist - [x] Self-review. |
||
|
|
b11e707cc8 |
feat(iroh)!: Retain stats for closed and abandoned paths in the path watcher (#3899)
## Description Improves the path watcher for connections to reliably allow accessing the stats of abandoned paths. * Abandoned paths are not removed from the value of the watchable for a connection's paths, as long as there are active watchers (subscribers) * Only once all watchers are dropped, we drop the abandoned paths from the watchable's value on the next update * This means that if you keep a `PathWatcher` alive for the duration of a connection, it will contain *all* paths the connection ever used. * We use the changes from https://github.com/n0-computer/quinn/pull/386 and keep a `WeakPathHandle` for all paths in the watchable's value. This prevents the path stats to be dropped within a quinn connection even if the path is abandoned. * We do no longer store path stats anywhere in iroh directly, but only ever access them from quinn. Due to keeping the `WeakPathHandle`, we can ensure that the stats are always available as long as the connection hasn't been dropped. The combination of all this gives us a reliable way to access final path stats for all paths used in a connection, as long as you keep a reference to the connection around, which is quite straightforward to do and document. ## Breaking Changes * `Connection::paths` and `ConnectionInfo::paths` now return a `PathWatcher` (which still implements `n0_watcher::Watcher` but now also is a named struct) * `PathInfo::stats` and `PathInfo::rtt` now return `Option`. They return `None` if the underlying connection has been droped. ## Notes & open questions I spend quite some time going back-and-forth over different approaches. Very open to other ideas, but I'm a bit out of further ideas currently and this is the best I could come up with so far. ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
1b4ee2a979 |
refactor(iroh, iroh-relay)!: Relay should not kill old connections when same endpoint id connects (#3921)
## Description When the iroh relay receives a connection from an endpoint to which it already has a connection, it currently drops the old one immediately. The old endpoint did not receive any indication as to why its connection was dropped, so it would reconnect again right away. The connection would succeed: Now it was its turn to be accepted, and the other endpoint would be dropped from the relay. This back-and-forth loop would continue infinitely. This PR changes this in the following way: * When a relay server receives a connection from an endpoint it for which it already has a connection, the new connection becomes the target for all future messages. * The old connection however is *not* dropped. Instead, it is continued until the client stops the connection. The client can still *send* messages, but it won't receive any further messages. * When a connection is moved into this "inactive" state, the server sends a final `Health` message to the client, with a text string informing the client that it is now inactive because another endpoint connected. In iroh, we `warn!` log this message. * When an active client disconnects, and there is an inactive client, the lastest inactive client will be promoted to active again ## Breaking Changes * `iroh_relay::server::client::RunError` variants changed ## Notes & open questions * I'd prefer to add a typed frame for the `Health` issue. However, adding new frames to the relay protocol currently will break all older clients. Therefore, this uses the stringly health frame for now. * We might want to discuss further changes, i.e. if the "old" endpoint should maybe do something more heavy than just logging a warn message. It will be in a weird state onwards: It still can send messages to other endpoints over the relay, but will never receive responses. This means that all connection attempts that go over the relay will time out. ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) Fixes #3813 |
||
|
|
9cf417aa97 |
feat(iroh)!: dropping the endpoint ungracefully should log and error, but still clean up resources immediately (#3879)
## Description closes https://github.com/n0-computer/iroh/issues/3867 relies on https://github.com/n0-computer/iroh/pull/3924 Alot of finagaling needed to happen to ensure that when the Endpoint is dropped, it's underlying resources are cleaned up ASAP. First, added a custom `Runtime` that wraps spawned tasks in a `CancellationToken`. This allows for both graceful shutdown (which does not use the cancel token, but instead waits for tasks to finish naturally) and ungraceful abort (which uses the cancel token to stop all running tasks) Wrote a new `Handle::abort` method that is sync and does not wait for graceful clean up after cancelling tokens, before aborting any runtime tasks. In order to ensure that the `Endpoint` is only "aborted" on the last clone of the endpoint, `StaticConfig` was moved into the `Handle`, and it was renamed to `EndpointInner` that is now wrapped in an `Arc`. When the `Arc` is finally dropped, the `Drop` impl on `EndpointInner` is called, which calls `Handle::abort`, if the `Endpoint` was not gracefully closed before dropping. This PR also makes sure that we drop any references to address lookup services on close. ## Breaking Changes New behavioral change! Then `Endpoint` does not do ANY best-effort to close connections gracefully before dropping. This makes it even more important to call `Endpoint::close` in all cases. This change (that prevents the underlying `quinn::Endpoint` to do it's best to wait/send close frames before shutting down) has already highlighted in tests how much more brittle it is to drop the endpoint without calling `close` first. ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. Co-authored-by: “ramfox” <“kasey@n0.computer”> Co-authored-by: Franz Heinzmann <frando@unbiskant.org> |
||
|
|
403238af1a |
chore(ci): colocate sims into iroh repo (#3957)
## Description We've done this in the quinn repo already. This should make life easier to both fiddle with sims while working but also to easily sync up changes when needed instead of having to sync merges across repos. Netsim itself changes less frequently and also is a lot more decoupled and tolerant of moving independently this way. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
9cc86027ed |
refactor(transfer example): Remove SelectedPath::Mixed as an impossible state (#3895)
## Description There should never be a situation where multiple paths are selected, that's impossible from the way `RemoteStateActor` works. This updates the example so that `SelectedPath::Mixed` is removed. |
||
|
|
df6c396410 |
refactor: Simplify path selection
## Description Fewer special cases in selection of the best path, in preparation to integrating user transports into path selection. This should keep the current logic completey unchanged, but make it easier to add additional paths without a maze of special cases. Implemented rules: - bias for ipv6 (IPV6_RTT_ADVANTAGE) - available (currently ipv4/ipv6) takes precendence over backup (currently relay) - switching between different transports in the same category (available or backup) only happens if the advantage is bigger than RTT_SWITCHING_MIN_IP to avoid toggling The purpose is to be able to integrate user transports more easily. Each user transport id would get a flag if it is considered available or backup (default backup?), and a rtt bias (default 0). Then you would add user transports to the selection process without any special cases. I guess available or backup are not the right categories here. The meaning would be standard (a transport that has a theoretical chance to become *the best* transport) and fallback (a transport of last resort that you want to get rid of asap as soon as you have another option, regardless of rtt). E.g. a BLE transport would always be a fallback transport because available bandwidth is very limited regardless of rtt. ## Breaking Changes None ## Notes & open questions ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) --------- Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com> |
||
|
|
1729243d26 |
feat(netsim): filter tests (#3946)
## Description Improves on the current filtering logistics of netsim. Instead of just a skiplist, you now have a filter field. Depending on prefix you either run it: - empty - no filtering - prefix the list with `skip:` to skip specific tests in a run - prefix the list with `only:` to only run specific tests - defaults to `only:` if you just provide a list without a prefix ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
08b0b8a381 |
examples(iroh): add --logs and --mode ping features to transfer example (#3893)
## Description
More improvements to our `transport` example to ease dogfooding:
* new `--logs` flag (for both provide and fetch) for simple file
logging:
- without further config, creates a directory
`./logs/transfer-{cmd}-{date}-{endpoint_id}` and saves logs with
`iroh=trace,transfer=trace` to a `logs` file in that directory.
- different log level can be set with RUST_LOG
- different path can be set with `--logs-path`
- qlog files are also written to that directory if the `qlog` feature is
enabled
* New `--mode ping` option for `fetch` command: instead of transferring
as much data as possible, this just keeps the connection open until the
`--duration` is expired (default: 10s). This gives much smaller log
files (both tracing and qlog) so easier to debug when looking for
connection changes only.
* Regular output now includes the time since start after each line.
Useful to interpret the "switched to direct" etc lines after the fact
(they didn't have any time indication so far)
* Better formatting for durations
* Better spans on accept side. Each connection gets an `id` now that
easily allows to grep for that connection through both iroh and quinn
logs
* Print path ids with the paths stats and changes. This allows to
correlate with the tracing logs now.
With both logs and qlog in a single dir it's now really straightforward
to share it eg with sendme.
## Breaking Changes
<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
## Notes & open questions
Should `--logs` include `iroh_quinn=trace` by default or not?
## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
- [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
- [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
- [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
- [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
- [ ] [`sendme`](https://github.com/n0-computer/sendme)
|
||
|
|
aa143819ff |
fix(iroh): Disable QAD if no IP transports are configured (#3926)
## Description When no IP transports are configured, QAD will always fail, because it uses an endpoint without ip transports and thus can't send anything. Therefore, this PR changes this such that when IP transports are disabled, no QAD config is created for the relay client, thus QAD probes will be skipped. |
||
|
|
d240360725 |
chore(ci): add custom RUST_LOG support for netsim (#3942)
## Description removes the basic debug flag in favor of passing a custom `RUST_LOG` ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
1ed4b72bda |
refactor!(iroh): adjust Endpoint API to return sensible values when the endpoint as been closed (#3924)
## Description closes #3905 ## Breaking Changes - `iroh` - `changed` - `Endpoint::address_lookup() -> Result<&ConcurrentAddressLookup, EndpointError>` - `Endpoint::dns_resolver() -> Result<&DnsResolver, EndpointError>` - `Endpoint::endpoint() -> Result<&quinn::Endpoint, EndpointError>` - `Endpoint::socket() -> Result<Handle, EndpointError>` - `added` - `Endpoint::last_net_report() -> Option<NetReport>` - `EndpointError` error enum (with variant`EndpointError::Closed`) - `ConnectWithOptsError::EndpointClosed` variant ## Notes & open questions Created a new issue, #3925 , for the APIs I still find unsatisfying/unclear. --------- Co-authored-by: “ramfox” <“kasey@n0.computer”> |
||
|
|
1324c66251 |
fix(tests): give test longer to not be flaky (#3939)
## Description This thing is flaky because of https://github.com/n0-computer/iroh/issues/3875 There are too many yaks, shut it up for now. ## Breaking Changes n/a ## Notes & open questions we'll get there... ## Change checklist - [x] Self-review. |
||
|
|
3a45cd0f1b |
chore: update to quinn main (#3938)
## Description I need this and things are so flaky that it needs to be separated out. ## Breaking Changes n/a ## Notes & open questions The closed event disappearing is problematic, it is tracked in https://github.com/n0-computer/iroh/issues/3930 ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. |
||
|
|
cf6acb5bbd |
fix(docs): Just a typo in the documentation for mdns discovery (#3929)
## Description Update docs for mdnsbuilder's servicename method to fix a typo ## Breaking Changes None ## Notes & open questions None ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. |
||
|
|
dbe5112cb8 |
fix: configure git identity in cleanup workflow
## Description The clean_docs_branch job fails with "fatal: empty ident name" because no git user.name/email is configured. Also handles the case where there are no old docs to clean up. ✅ workflow https://github.com/n0-computer/iroh/actions/runs/21824443730/job/62965614616 ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [ ] Self-review. - [ ] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. - [ ] List all breaking changes in the above "Breaking Changes" section. - [ ] Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are: - [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc) - [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip) - [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs) - [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe) - [ ] [`sendme`](https://github.com/n0-computer/sendme) |
||
|
|
fe7f04f63e |
feat(iroh-relay): Embeddable relay server (#3832)
## Description
This PR renders the iroh-relay server embeddable as a library by making
`RelayService` public ~and adding a native axum integration around it,
enabling the relay service to be integrated directly into axum
applications as a standard route handler without requiring
connection-level routing, separate ports, or reverse proxies.~
Adds docs, examples and tests for all new and/or now public
functions/structs.
## Key changes:
- Refactored relay internals (RelayedStream, Client, Actor, Clients) to
be generic over stream types while maintaining backward compatibility
- ~Added new axum feature and server::axum_integration module~
- ~Implemented AxumWebSocketAdapter that bridges axum's WebSocket to the
relay's Stream/Sink traits~
- ~Created RelayState and relay_handler for easy integration into axum
routers~
- ~Full relay protocol support including handshake, authentication,
authorization, and client registration~
- Made all types public that are needed to have the Axum integration be
done in an external crate
## Breaking Changes
None. All changes are internal refactoring or new additions. The generic
implementations are backward compatible with existing relay server usage
through type aliases and preserved public APIs.
## Notes & open questions
- ~Rate limiting: Client-side rate limiting configuration is accepted
but not fully enforced yet in the axum integration (similar limitation
exists in the existing HTTP server integration)~
- ~TLS key export: AxumWebSocketAdapter implements ExportKeyingMaterial
but returns None since axum's WebSocket doesn't support TLS key material
export. This matches the behavior of non-TLS connections in the existing
relay server.~
- ~Error handling: Axum WebSocket errors are wrapped in
tokio_websockets::Error::Io variant for consistency with the relay's
error handling~
- ~Testing: Integration tests verify both non-TLS and TLS scenarios with
full end-to-end relay communication~
### Could We Reduce This?
We could potentially create a single public "escape hatch" function:
```Rust
pub async fn handle_custom_websocket<S>(
stream: S,
access_config: &AccessConfig,
clients: &Clients,
) -> Result<()>
where S: Stream + Sink + ExportKeyingMaterial
```
This would hide all the intermediate types and just expose one function.
However, this would:
- Remove flexibility (consuming crates couldn't customize the handshake
or authorization logic)
- Still require AccessConfig, Clients, and the trait bounds to be public
## Change checklist
- [x] Self-review.
- [x] AI review
- [x] Documentation updates following the
https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text,
if relevant.
- [x] Tests added.
- All breaking changes documented.
- N/A - No breaking changes to public API
---------
Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
|
||
|
|
82650d1d1f | chore: Release v0.96.1 | ||
|
|
db429c7149 |
chore: specify minimum iroh-quinn and iroh-quinn-proto patch versions (#3918)
## Description prepping for 0.96.1 patch release Co-authored-by: “ramfox” <“kasey@n0.computer”> Co-authored-by: dignifiedquire <me@dignifiedquire.com> |
||
|
|
f2eb1e3c54 | chore: Update bytes and time address advisories | ||
|
|
6aef7001a3 |
chore(deps): bump bytes from 1.11.0 to 1.11.1 (#3911)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.11.0 to 1.11.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/bytes/releases">bytes's releases</a>.</em></p> <blockquote> <h2>Bytes v1.11.1</h2> <h1>1.11.1 (February 3rd, 2026)</h1> <ul> <li>Fix integer overflow in <code>BytesMut::reserve</code></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md">bytes's changelog</a>.</em></p> <blockquote> <h1>1.11.1 (February 3rd, 2026)</h1> <ul> <li>Fix integer overflow in <code>BytesMut::reserve</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tokio-rs/bytes/commit/417dccdeff249e0c011327de7d92e0d6fbe7cc43"><code>417dccd</code></a> Release bytes v1.11.1 (<a href="https://redirect.github.com/tokio-rs/bytes/issues/820">#820</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398f"><code>d0293b0</code></a> Merge commit from fork</li> <li>See full diff in <a href="https://github.com/tokio-rs/bytes/compare/v1.11.0...v1.11.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
68243eda3c |
chore: Pin digest to version compatible with curve25519-dalek 5.0.0-pre.1 (#3908)
## Description curve25519-dalek 5.0.0-pre.x for x>1 uses rand 0.10 rc, which we don't want. But digest 0.11.0-rc.11 and later no longer work with curve25519-dalek 5.0.0-pre.1 ## Breaking Changes n/a ## Notes & open questions none |
||
|
|
5126857f2d | fix(iroh): use latest portmapper to avoid duplicate dependencies (#3903) | ||
|
|
d5299bf29f | chore: Release v0.96.0 | ||
|
|
9130711599 |
chore: release prep (#3889)
## Description final release prep!!! - update to the latest versions of `iroh-quinn`, `iroh-quinn-udp`, `iroh-quinn-proto` - update to the latest version of `netwatch` - update all deps - update `rust-version` to 1.89 --------- Co-authored-by: Frando <frando@unbiskant.org> Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com> |
||
|
|
f4bfc9d7b7 |
examples: improve transfer example (#3873)
## Description
Improves the transfer example we use for dogfooding:
* Change protocol such that the size is client- and not
server-controlled
* Add `--mode` feature on `fetch` side to either download (like
currently), upload, or transfer in both directions
* Add `--duration` feature on `fetch` side to limit by transfer duration
instead of size
* Remove the unordered receive mode. It wasn't used (there was no cli
flag so it was never enabled).
* Add `--output json` to print JSON instead of human-readable text.
* Improve docs
Because the protocol change is wire-breaking the ALPN is updated.
The JSON support was requested @Arqu a couple of time and should make
our integration in netsim easier and less brittle. Output looks like
this atm:
Provide side:
```
{"kind":"EndpointArgs","env":"Staging","relay_url":[],"no_relay":true,"no_discovery":false,"relay_only":false,"pkarr_relay_url":null,"no_pkarr_publish":false,"dns_origin_domain":null,"dns_server":null,"no_dns_resolve":false,"mdns":false,"bind_addr_v4":"127.0.0.1:1234","bind_addr_v4_additional":[],"bind_addr_v6":null,"bind_addr_v6_additional":[],"no_default_bind":false}
{"kind":"EndpointBound","endpoint_id":"5cc1982c0bc2612a2b62e7811242ec317576dace66688af743769e7eebdbb8c7","direct_addresses":["127.0.0.1:1234","[2003:f9:f724:8240:1566:102:9d0d:ea24]:33990","[2003:f9:f724:8240:a6e3:ea7a:0:edb]:33990"],"relay_url":null}
{"kind":"ConnectionAccepted","remote_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed"}
{"kind":"ConnectionTypeChanged","status":"Selected","addr":{"Ip":"127.0.0.1:47519"},"rtt":2046,"remote_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed"}
{"kind":"HandleRequest","request":{"Download":{"Duration":3000000}},"remote_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed"}
{"kind":"UploadComplete","size":1216070367,"duration":3002590,"remote_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed"}
{"kind":"ConnectionClosed","duration":3002772,"error":null,"remote_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed"}
{"kind":"PathStats","paths":[{"remote_addr":{"Ip":"127.0.0.1:47519"},"rtt":95,"bytes_sent":813274,"bytes_recv":1244335203}],"remote_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed"}
```
Fetch side:
```
{"kind":"EndpointArgs","env":"Staging","relay_url":[],"no_relay":true,"no_discovery":false,"relay_only":false,"pkarr_relay_url":null,"no_pkarr_publish":false,"dns_origin_domain":null,"dns_server":null,"no_dns_resolve":false,"mdns":false,"bind_addr_v4":null,"bind_addr_v4_additional":[],"bind_addr_v6":null,"bind_addr_v6_additional":[],"no_default_bind":false}
{"kind":"SecretGenerated","secret_key":"a0952bebe97106c30d6b22a50402d55d894b8e5e3d5b63d7e643bc5e6ad8f59a"}
{"kind":"EndpointBound","endpoint_id":"f2b872754fcaad0efac0bb57e3f19e38a8c4880f6c2789705f2b69b7a2211bed","direct_addresses":["172.16.10.33:47519","[2003:f9:f724:8240:1566:102:9d0d:ea24]:45524","[2003:f9:f724:8240:a6e3:ea7a:0:edb]:45524"],"relay_url":null}
{"kind":"Connected","remote_id":"5cc1982c0bc2612a2b62e7811242ec317576dace66688af743769e7eebdbb8c7","duration":3820}
{"kind":"StartRequest","mode":"Download","length":{"Duration":3000000}}
{"kind":"ConnectionTypeChanged","status":"Selected","addr":{"Ip":"127.0.0.1:1234"},"rtt":1162}
{"kind":"DownloadComplete","size":1216070367,"time_to_first_byte":5699,"num_chunks":31134,"duration":3004047}
{"kind":"ConnectionClosed","duration":3007952,"error":null}
{"kind":"EndpointClosed","duration":81556,"timed_out":false}
{"kind":"PathStats","paths":[{"remote_addr":{"Ip":"127.0.0.1:1234"},"rtt":84,"bytes_sent":1244335156,"bytes_recv":956724}]}
```
## Breaking Changes
<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
## Notes & open questions
This will likely break netsim.
## Change checklist
<!-- Remove any that are not relevant. -->
- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
- [ ] List all breaking changes in the above "Breaking Changes" section.
- [ ] Open an issue or PR on any number0 repos that are affected by this
breaking change. Give guidance on how the updates should be handled or
do the actual updates themselves. The major ones are:
- [ ] [`quic-rpc`](https://github.com/n0-computer/quic-rpc)
- [ ] [`iroh-gossip`](https://github.com/n0-computer/iroh-gossip)
- [ ] [`iroh-blobs`](https://github.com/n0-computer/iroh-blobs)
- [ ] [`dumbpipe`](https://github.com/n0-computer/dumbpipe)
- [ ] [`sendme`](https://github.com/n0-computer/sendme)
|