Commit Graph
1501 Commits
Author SHA1 Message Date
Pablo d2ecbdbf7f docs(iroh-cli): fix typo (#2718)
## Description

Fixes a typo introduced in a previous PR.

## 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

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 14:16:27 +00:00
PabloandPhilipp Krüger 7b6c974022 docs(iroh-cli): update docs command documentation (#2703)
## Description

Update documentation to RPC's subcommand `docs`.

This partially addresses #2660, and belongs to a series of PRs to
complete it.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.

---------

Co-authored-by: Philipp Krüger <philipp.krueger1@gmail.com>
2024-09-06 13:18:23 +00:00
PabloandPhilipp Krüger 76b1473d37 docs(iroh-cli): update blobs command documentation (#2704)
## Description

Update documentation to RPC's subcommand `blobs`.

This partially addresses #2660, and belongs to a series of PRs to
complete it

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.

---------

Co-authored-by: Philipp Krüger <philipp.krueger1@gmail.com>
2024-09-06 12:20:39 +00:00
Pablo 7510a59b87 docs(iroh-cli): update tags command documentation (#2709)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Update documentation to `tags` command.

This partially addresses #2660, and belongs to a series of PRs to
complete it

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 11:51:01 +00:00
Pablo bdaeba1b96 docs(iroh-cli): update gossip command documentation (#2706)
## Description

Update documentation to `console` commands.

This partially addresses #2660, and belongs to a series of PRs to
complete it

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 11:50:34 +00:00
Philipp Krüger 098b11f81e refactor(iroh): Remove custom impl of SharedAbortingJoinHandle (#2715)
## Description

Removes our custom implementation of `SharedAbortingJoinHandle` in favor
of a combination of
- `futures_util::future::Shared`
- `futures_util::future::MapErr` and
- `tokio_util::task::AbortOnDropHandle`
<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## Breaking Changes

Should all be internal, so none.
<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

We need to turn the `JoinError` to a `String`, because `JoinError` is
`!Send`, but `String` is.
This is exactly the same behavior as what our custom
`SharedAbortingJoinHandle` was doing before.
<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-09-06 10:54:28 +00:00
Pablo 518d439684 docs(iroh-cli): update rpc command documentation (#2711)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Update documentation to tags command.

This partially addresses #2660, and belongs to a series of PRs to
complete it.

## 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.
-->
Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 10:41:43 +00:00
Pablo 2636be8586 docs(iroh-cli): update start command documentation (#2708)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Update documentation to `start` command.

This partially addresses #2660, and belongs to a series of PRs to
complete it.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 10:28:58 +00:00
Pablo 8c321a2a48 docs(iroh-cli): update net command documentation (#2707)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Update documentation to `net` command.

This partially addresses #2660, and belongs to a series of PRs to
complete it

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 10:22:35 +00:00
Pablo 4964ee3652 docs(iroh-cli): update console command documentation (#2705)
## Description

Update documentation to `console` command.

This partially addresses #2660, and belongs to a series of PRs to
complete it

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 10:08:55 +00:00
Pablo 2c199a02e8 docs(iroh-cli): update authors command documentation (#2702)
## Description

Update documentation to RPC's subcommand `authors`.

This partially addresses #2660, and belongs to a series of PRs to
complete it.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

The imports have been formatted to join similar `use` paths.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 10:01:55 +00:00
Pablo 93b400a067 docs(iroh-cli): udpate doctor command documentation (#2710)
## Description

Update documentation to `doctor` command submodule.

This partially addresses #2660, and belongs to a series of PRs to
complete it.

## 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.
-->
Imports have been formated to be grouped.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
2024-09-06 09:06:32 +00:00
Friedel Ziegelmayer 52422cdb22 chore: fix clippy@1.81.0 and cargo deny (#2714)
Closes #2713
2024-09-06 07:40:22 +00:00
Asmir Avdicevic 21d75c75eb fix(ci): fix docker builds on release & release rebuilds (#2712)
## Description

Allows us to rebuild binaries for a release and attach them again.
Fixes docker input passing when doing a workflow call.

## 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

- [ ] 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.
2024-09-05 21:15:24 +03:00
PabloandPhilipp Krüger c6e2f05e3a docs(iroh-cli): add docs to entrypoint (#2697)
## Description

Add documentation to undocumented items in the entrypoint for the
`iroh-cli` at `iroh/iroh-cli/src/commands.rs`.

This partially addresses #2660, and belongs to a series of PRs to
complete it.

## Breaking Changes

No breaking changes.

## Notes & open questions

No additional notes.

## Change checklist

- [ ] 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.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.

---------

Co-authored-by: Philipp Krüger <philipp.krueger1@gmail.com>
2024-09-05 14:11:34 +00:00
Floris Bruynooghe 35e9873901 refactor!: Migrate to tokio's AbortOnDropHandle (#2701)
## Description

This migrates us to tokio's AbortOnDropHandle from the various
versions we had for this ourselves.  Only for iroh::node::Node we keep
a local version around since it is both Clone *and* awaits the tasks.
Generally it's probably better to not make this kind of design though,
if possible.

## Breaking Changes

Removes the `iroh_net::util` module.  This only contained utilities
that should have been internal in the first place.  If you were using
one of the tools to abort tasks on drop, we recommend migrating to
`tokio_util::task::AbortOnDropHandle`.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## 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.
- ~~[ ] Tests if relevant.~~
- [x] All breaking changes documented.
2024-09-05 14:02:04 +00:00
2e5188a1f3 feat: allow to bind to a specific address (#2694)
## Description

Allows to specify the IPv4 and IPv6 addresses where iroh should bind to.

Closes #2565

## Breaking Changes

- changed 
  - `iroh_net::endpoint::Endpoint::bind` now takes  no arguments
- removed
  -  `iroh::node::Builder::bind_port`
- added
  -  `iroh_net::endpoint::Builder::bind_addr_v4`
  -  `iroh_net::endpoint::Builder::bind_addr_v6`
  -  `iroh::node::Builder::bind_addr_v4`
  -  `iroh::node::Builder::bind_addr_v6`
  -  `iroh::node::Builder::bind_random_port`

## 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.
- [x] Tests if relevant.
- [x] All breaking changes documented.

---------

Co-authored-by: Kasey <kasey@n0.computer>
Co-authored-by: Floris Bruynooghe <flub@n0.computer>
2024-09-05 13:25:32 +00:00
Philipp Krüger b8c051303b fix: Put --with-relay feature in iroh-net bench behind local-relay feature flag (#2700)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Now, to test relay-only throughput do this:
```sh
$ cd iroh-net/bench
$ DEV_RELAY_ONLY=t cargo run --features local-relay --release -- iroh --with-relay
```

Putting this behind a feature flag means we don't get weird feature flag
workspace unification with the `test-utils` feature. Before this change,
we would basically disable DNS discovery for everything in the
workspace.

## Breaking Changes

None.
<!-- 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.
-->
Quite a few toggles now with `DEV_RELAY_ONLY`, the `local-relay` feature
and the `--with-relay` cli flag. I think each has its own meaning though
(the `--with-relay` meaning can be expanded in the future).

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-09-05 12:25:40 +00:00
Floris Bruynooghe 874030a374 fix(iroh-net): Fix a hot-loop when the probes time out (#2699)
## Description

When all the probes time out the reportgen actor went into a hot-loop.
We slow this down by resetting the timer to be in the future again.
This way the actor loop can finish normally from the probes without
entering a hot-loop.  The actual timeout doesn't matter too much,
normally it should not happen twice as the actor should be finished by
the time another PROBES_TIMEOUT expires.

## Breaking Changes

None

## Notes & open questions

Fixes #2684.

I've never been very happy with the mainloop of the reportgen actor.
There is too much manual state-tracking also with the way
self.outstanding_tasks is structured.  Also the way that
Message::ProbeWouldHelp exists is not nice, the actor should be able
to abort any probes on it's own when they are no longer needed.  Maybe
I should sit down again sometime and think better about how to
structure this.  Nevertheless, this is a good fix for a real problem.

I'm not sure it's possible to write tests for this in a reasonable way
without manipulating the state entirely artificially.  Another reason
that this logic would be better expressed with more typesystem help.

## Change checklist

- [x] 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.~~
2024-09-05 11:22:09 +00:00
Friedel Ziegelmayer 567577d339 fix(iroh-blobs): unconditionally delete blobs (#2692)
- always delete hashes, even if they are protected when calling
`Store::delete`
- move gc loop implementation into the stores

## Breaking Changes

- removed `Store::gc_sweep`
- removed `Store::gc_mark`
- removed `Store::gc_start`
- added `Store::gc_run` which starts the full gc schedule

Closes #2657
2024-09-03 19:57:48 +00:00
ramfox a029d89a2b chore: Release v0.24.0 2024-09-02 16:00:36 -04:00
Philipp Krüger 23475650e6 fix(iroh-blobs): Timeout based on correct max_write_duration option (#2688)
## Description

This fixes a small copy and paste bug that was introduced in #2622,
here:
https://github.com/n0-computer/iroh/pull/2622/files?diff=unified&w=0#diff-bbe46ca272a808bb1c94619ab3264586a47a6ec6e0f7cd5a63dba5e99099241bL1521-R1526
(You need to load the diff for the `fs.rs` file)
<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
None

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->
Tests would be nice, but I'm looking at other things right now, so I'd
prefer to merge this first :S

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-09-02 13:32:50 +00:00
Philipp Krüger 5bbcb60838 fix(iroh-blobs): Turn println! into tracing::debug! (#2686)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
@divagant-martian noticed there's a `println!` in iroh-blobs. I turned
this into a `tracing::debug!` instead.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
None

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-09-02 12:45:40 +00:00
Philipp Krüger 6181455e32 fix(iroh-blobs): Demote warn! to trace! logs (#2689)
## Description

I don't think these logs were meant to be `warn!` logs. I suspect those
were originally added for debugging.
<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
None.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->
Should we remove them altogether?

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-09-02 12:34:35 +00:00
Divma fd56763352 fix(iroh-net): reduce noise in swarm discovery due to republish (#2685)
## Description

Since republish occurs more or less every second, for every peer in the
local network, every second we insert it in the node_map (which includes
locking), print a debug line, and for requesters, re-send a value that
was previously sent (since every time a new sender is added we
immediately send known values). This pr makes it so that we do all this
only when new values are found.

## Breaking Changes

- swarm discovery will no longer send consecutive repeated values

## Notes & open questions

the typo is unrelated to the pr but was flagged by ci

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-09-02 11:59:33 +00:00
Floris Bruynooghe 6296964a59 deps(iroh-gossip): Do not depend directly on Quinn (#2678)
## Description

iroh-gossip has a direct dependency on Quinn but does not need it.
Remove this.

## Breaking Changes

none

## Notes & open questions

Please do not merge before #2595 is merged. I'm trying to not modify
that PR any further.

## Change checklist

- [x] 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.~~
2024-08-29 11:36:04 +00:00
Floris Bruynooghe 05fff6a11d ref(iroh-net): Do not add the NodeId in the magicsock span field (#2679)
## Description

Since we have made MagicSock private it should always be created via the
Endpoint, unless we are internally messing around with tests or so.
Because of this we can make sure that the Endpoint always attaches the
correct "me" field to the span. Reducing the amount of noise in the
default log output.

## Breaking Changes

None

## Notes & open questions

Please do not merge before #2595 is merged. I'm trying to not add any
further changes to that PR.

## Change checklist

- [x] 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.~~
2024-08-29 10:50:30 +00:00
34ec5e24b9 feat(iroh-net)!: upgrade to Quinn 0.11 and Rustls 0.23 (#2595)
## Description

Upgrades the Quinn and Rustls dependencies. This touches a lot of
dependencies and affects a lot of the internal API due to the changes in
Quinn.

## Breaking Changes

- `iroh::net::endpoint::Endpoint::accept` now returns `Incoming` instead
of `Connecting`. This allows rejecting incoming connections earlier,
notify the initiating side to retry later and more. To get back
`Connecting`, simply use `Incoming::accept()`. If all you did with
`Connecting` before was to `.await` it, you can do the same with
`Incoming`, too, and get back a `Connection`.
- Removed `iroh::net::endpoint::Builder::concurrent_connections`. The
amount of concurrent connections is now controlled by either calling
`Incoming::accept` or `Incoming::refuse` after `Endpoint::accept`.

## Notes & open questions

See #2273 for the tracking issue coordinating all this work. This is the
last piece of the puzzle.

## 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.
- [x] Tests if relevant.
- [x] All breaking changes documented.

---------

Co-authored-by: dignifiedquire <me@dignifiedquire.com>
Co-authored-by: Philipp Krüger <philipp.krueger1@gmail.com>
2024-08-28 15:12:51 +00:00
Philipp Krüger 4f83c43824 feat(bench): Add --metrics option printing iroh-net library metrics (#2668)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Used these changes to test #2667.

I think this is a decent tool. Output looks like this:

<details>
<summary><code>$ cd iroh-net/bench && cargo run --release -- iroh
--metrics --with-relay</code></summary>

```
   Compiling iroh-net-bench v0.23.0 (/home/philipp/program/work/iroh/iroh-net/bench)
    Finished `release` profile [optimized + debuginfo] target(s) in 28.47s
     Running `/home/philipp/program/work/iroh/target/release/bulk iroh --metrics --with-relay`

Client 0 stats:
Connect time: 1008.829553ms
Overall download stats:

Transferred 1073741824 bytes on 1 streams in 1.70s (603.46 MiB/s)

Time to first byte (TTFB): 105.312ms

Total chunks: 36445

Average chunk time: 46.544ms

Average chunk size: 28.77KiB

Stream download metrics:

      │  Throughput   │ Duration 
──────┼───────────────┼──────────
 AVG  │  603.75 MiB/s │     1.70s
 P0   │  603.50 MiB/s │     1.70s
 P10  │  604.00 MiB/s │     1.70s
 P50  │  604.00 MiB/s │     1.70s
 P90  │  604.00 MiB/s │     1.70s
 P100 │  604.00 MiB/s │     1.70s

Metrics:
MagicsockMetrics: {
    "actor_link_change": 0,
    "actor_tick_direct_addr_heartbeat": 0,
    "actor_tick_direct_addr_update_receiver": 6,
    "actor_tick_main": 22,
    "actor_tick_msg": 13,
    "actor_tick_other": 0,
    "actor_tick_portmap_changed": 0,
    "actor_tick_re_stun": 2,
    "num_direct_conns_added": 3,
    "num_direct_conns_removed": 1,
    "num_relay_conns_added": 5,
    "num_relay_conns_removed": 3,
    "re_stun_calls": 3,
    "recv_data_ipv4": 88975499264,
    "recv_data_ipv6": 0,
    "recv_data_relay": 49200,
    "recv_datagrams": 944499,
    "recv_disco_bad_key": 0,
    "recv_disco_bad_parse": 0,
    "recv_disco_call_me_maybe": 2,
    "recv_disco_call_me_maybe_bad_disco": 0,
    "recv_disco_ping": 14,
    "recv_disco_pong": 14,
    "recv_disco_relay": 6,
    "recv_disco_udp": 24,
    "relay_home_change": 2,
    "send_data": 1104903421,
    "send_data_network_down": 0,
    "send_disco_relay": 6,
    "send_disco_udp": 24,
    "send_ipv4": 1104905771,
    "send_ipv6": 470,
    "send_relay": 49988,
    "send_relay_error": 0,
    "sent_disco_call_me_maybe": 2,
    "sent_disco_ping": 14,
    "sent_disco_pong": 14,
    "sent_disco_relay": 6,
    "sent_disco_udp": 24,
    "update_direct_addrs": 3,
}
NetcheckMetrics: {
    "reports": 3,
    "reports_full": 0,
    "stun_packets_dropped": 0,
    "stun_packets_recv_ipv4": 0,
    "stun_packets_recv_ipv6": 0,
    "stun_packets_sent_ipv4": 10,
    "stun_packets_sent_ipv6": 10,
}
PortmapMetrics: {
    "external_address_updated": 0,
    "local_port_updates": 3,
    "mapping_attempts": 5,
    "mapping_failures": 3,
    "pcp_available": 0,
    "pcp_probes": 3,
    "probes_started": 3,
    "upnp_available": 0,
    "upnp_gateway_updated": 0,
    "upnp_probes": 6,
    "upnp_probes_failed": 3,
}
RelayMetrics: {
    "accepts": 2,
    "bytes_recv": 50082,
    "bytes_sent": 50082,
    "derp_accepts": 2,
    "disco_packets_dropped": 0,
    "disco_packets_recv": 0,
    "disco_packets_sent": 0,
    "disconnects": 0,
    "got_ping": 0,
    "other_packets_dropped": 0,
    "other_packets_recv": 2,
    "other_packets_sent": 0,
    "send_packets_dropped": 0,
    "send_packets_recv": 9,
    "send_packets_sent": 9,
    "sent_pong": 0,
    "unique_client_keys": 2,
    "unknown_frames": 0,
    "websocket_accepts": 0,
}
```

</details>

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
None. The semver check also checks for the "public API" of
`iroh-net/bench`, and there's been another `Opt` addition.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->
This PR is based on #2664 at the moment, let's merge that first.

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-08-26 15:38:30 +00:00
Philipp KrügerandFloris Bruynooghe 54ca9c942f fix(iroh-net): Also check the last packet in MagicSock::poll_recv (#2650)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->

These are the quinn docs for `RecvMeta::stride`:
```rs
/// The size of a single datagram in the associated buffer
///
/// When GRO (Generic Receive Offload) is used this indicates the size of a single
/// datagram inside the buffer. If the buffer is larger, that is if [`len`] is greater
/// then this value, then the individual datagrams contained have their boundaries at
/// `stride` increments from the start. The last datagram could be smaller than
/// `stride`.
///
/// [`len`]: RecvMeta::len
```

So, `meta.len` isn't necessarily evenly divided by `meta.stride`, and
the last packet could be smaller than the stride.

The previous code assumed so, however. I think that's a bug. Not bad
enough that this caused issues, but still bad.

## Breaking Changes

None
<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

What are the exact effects of this code having been incorrect before?

I guess one piece is that the metrics for computing the # received bytes
was way off.

Should we test this somehow specifically?
<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.

---------

Co-authored-by: Floris Bruynooghe <flub@n0.computer>
2024-08-26 14:41:38 +00:00
Philipp Krüger cb1650a5eb fix(iroh-net): Magic sock recv_data_ipv4 and recv_data_ipv6 metrics numbers (#2667)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Previously, when I edited the iroh-net benchmark to print metrics, it'd
show (on a 1GB transfer):
```rs
// ...
    send_ipv4: 1104880201,
// ...
    recv_data_ipv4: 88912756736,
```

Clearly, the 89GB received data is wrong. The reason is that we record
the *buffer size* when we record metrics instead of recording the
*received packet size*.
The buffer tends to be around ~90kB for me, while the received packets
are around 1-2kB. This explains the 90x factor.

With this fix, I now get:
```rs
// ...
    send_ipv4: 1104885110,
// ...
    recv_data_ipv4: 1104882621,
```

## Breaking Changes

None.
<!-- 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

- [x] 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.~~
- [x] All breaking changes documented.
2024-08-26 14:39:23 +00:00
Philipp Krüger 5c09013422 feat(bench): Add --with-relay option to allow testing relay throughput (#2664)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
I did these changes to allow me to test relay throughput differences
between the `dig/quinn11` and `main` branches.

The way I test relay throughput now is:
```sh
$ cd iroh-net/bench
$ DEV_RELAY_ONLY=true cargo run --release -- iroh --with-relay
```

Otherwise it simply allows testing iroh with a relay enabled, too, which
is nice I think.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
None

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->
I think it's pretty obvious one could expand this to enable testing
throughput not only with local relays, but also with any relay one wants
to test with (e.g. testing euw1 relay for fun). I worked on this for a
couple of minutes, then deemed it out of scope.

## Change checklist

- [x] 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.~~
- [x] All breaking changes documented.
2024-08-26 09:06:24 +00:00
Philipp Krüger 1d3f3fa812 test(iroh-gossip): Wait for the relay to make gossip_net_smoke faster. (#2663)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->
Just a tiny change that improves performance from ~1s -> ~0.4s on my
machine.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
None

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->
One could argue we shouldn't make this change, because it doesn't cause
that much erratic behavior. We should rather write tests that fail on
"more bugs".
I'm not sure. Perhaps the gossip smoke test shouldn't be the test that
we use to stress network edge cases.

## Change checklist

- [x] 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.~~
- [x] Tests if relevant.
- [x] All breaking changes documented.
2024-08-23 09:01:03 +00:00
Asmir Avdicevic d5672319d7 fix: docker CI performance & release builds (#2659)
## Description

- We now build the docker test CI jobs in a way that more closely
resembles the release process. It should compile the binaries and build
the image significantly faster now. (down from 8+ min to 2 min)
- Secrets are properly passed in to the reusable workflow so [release
docker builds should no longer
fail](https://github.com/n0-computer/iroh/actions/runs/10473026816/job/29005092378)

## 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

- [x] 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.
2024-08-22 14:49:42 +00:00
Floris Bruynooghe c70caaf48a fix(iroh-net): Document the keylog environment variable correctly (#2655)
## Description

Also log the fact this is enabled on WARN level.  This is pretty
important to notice.

## Breaking Changes

none

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## 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.
- ~~[ ] Tests if relevant.~~
- ~~[ ] All breaking changes documented.~~
2024-08-21 15:55:36 +00:00
Divma 060bf8326d refactor(iroh, iroh-blobs, iroh-net)!: remove deprecated items (#2652)
## Description

Removes items deprecated in the last release.

## Breaking Changes

### iroh-blobs
- `iroh_blobs::store::fs::Store::import_flat_store` was previously
deprecated and is now removed. Use iroh <= `0.22.0` to migrate.
- `iroh_blobs::store::fs::FlatStorePaths` is removed. This was only used
for importing flat stores, which were previously deprecated. Use iroh <=
`0.22.0` to migrate.

### iroh
- Automatic migration from flat stores is no longer possible. This was
previously deprecated. Use iroh <= `0.22.0` to migrate.

### iroh-net
- `iroh_net::endpoint::RemoteInfo::last_alive_relay` was previously
deprecated and it's now removed.

## Notes & open questions

n/a

## Change checklist

- [x] 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.~~
- [x] Tests if relevant.
- [x] All breaking changes documented.
2024-08-20 17:55:00 +00:00
ramfox 855e1bbdd2 chore: Release v0.23.0 2024-08-20 09:44:23 -04:00
Philipp Krüger 717b3cdd52 fix(iroh-cli): cli_provide_addresses to use the correct iroh status command (#2649)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->

`iroh node status` changed to `iroh status` after
https://github.com/n0-computer/iroh/pull/2642

The `cli_provide_addresses` command wasn't set up correctly for that.

## 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

- [x] 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.~~
- [x] All breaking changes documented.
2024-08-20 08:58:20 +00:00
Rüdiger KlaehnandFriedel Ziegelmayer 217ac06b21 refactor(iroh-blobs)!: expand docs (#2638)
## Description

Extend iroh-blobs docs a bit

## Breaking Changes

- There are some fn name changes, but they are for unpublished fns.
- transfer_collection has been removed. It was very lowlevel and used in
none of the examples, so I doubt anybody was using it outside.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] 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.

---------

Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
2024-08-19 17:55:45 +00:00
KaseyandKasey Huizinga bb808b45b9 refactor(iroh-net): move all timeouts into one file (#2641)
## Description

Co-locates all timeout defaults that have to do with making connections
or running netcheck.

closes #2602

## Notes & open questions

I nested some of the timeouts in another module (specifically the ones
pertaining to the relay) but I could do this more for other sections,
ie, the portmapper timeouts could be nested in a `portmapper` module.

## 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.

---------

Co-authored-by: Kasey Huizinga <ramfox@Kaseys-MBP.lan>
2024-08-19 17:21:09 +00:00
Friedel ZiegelmayerandKasey 6354e04f34 refactor(iroh)!: convert node to net module (#2642)
## Description

Converts the `node` module to the `net` module (`iroh` and `iroh-cli`)

Closes #2639

## Breaking Changes

- No more `deref` of `iroh::net::Client` to `iroh::client::node::Node`
- `iroh::client::node` -> `iroh::client::net`
- `iroh::client::node::Node::shutdown` ->
`iroh::client::Client::shutdown`

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## 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.
- [ ] Tests if relevant.
- [x] All breaking changes documented.

---------

Co-authored-by: Kasey <kasey@n0.computer>
2024-08-19 17:09:29 +00:00
Rüdiger KlaehnandFriedel Ziegelmayer d1578ee832 refactor(iroh-net)!: Rename the local-swarm-discovery feature to discovery-local-network (#2634)
## Description

Rename the local-swarm-discovery feature to discovery-local-network to
be consistent with discovery-pkarr-dht

## Breaking Changes

renames the `local-swarm-discovery` feature flag in iroh-net to
`discovery-local-network`

## Notes & open questions

Naming is hard. Pretty sure the ff should start with `discovery-`, but
should it be `discovery-local-network` or `discovery-local-swarm` or
just -local...?

## Change checklist

- [ ] 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.

Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
2024-08-19 15:46:47 +00:00
Rüdiger KlaehnandFriedel Ziegelmayer 134dbeedc7 feat(iroh-net): allow customizing republish delay for the pkarr publisher (#2637)
## Description

The pkarr dht publisher has two delays, the initial delay and the
republish delay. These were constants so far, but now are configurable
in the builder.

This allows us to set the delay to 0s in the dht_discovery_smoke test.

## Breaking Changes

None

## Notes & open questions

Will this fix the flakiness?

## 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.
- [ ] Tests if relevant.
- [x] All breaking changes documented.

Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
2024-08-19 14:26:37 +00:00
Floris Bruynooghe b17bf1d551 refactor(iroh-net,iroh): rename to remote_info_iter, fixup some docs (#2645)
## Description

This renames remote_infos_iter to remote_info_iter.  This returns an
iterator of remote_info items.  Using plural for "info" adds a double
plural together with "iter", creating something of a pleonasm.

## Breaking Changes

None right now, this is unreleased.

But `Endpoint::remote_infos_iter` -> `Endpoint::remote_info_iter` from
previous breaking changes.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## 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.
- ~~Tests if relevant.~~
- [x] All breaking changes documented.
2024-08-19 14:25:18 +00:00
Asmir Avdicevic 83f6fccc2c ci: fix deps issues (#2643)
## Description

cargo-ndk has [known
issues](https://github.com/bbqsrc/cargo-ndk/issues/137) with workspace
setups for versions 3.5.5 and up.

Ensuring docker test runs start with a fresh docker setup.

## 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

- [ ] 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.
2024-08-19 11:15:05 +00:00
9d068886f1 refactor(iroh,iroh-net)!: prefer remote to connection in api (#2610)
## Description

Moves some functions and types to use `remote` to describe the
information we know about a node,
instead of connections. This, based on the fact that iroh-net does not
itself handle connections,
making the wording misleading at best.

## Breaking Changes

### iroh
- `client::node::Client::connection_info` ->
`client::node::Client::remote_info`
- `client::node::Client::connections` ->
`client::node::Client::remote_infos_iter`

### iroh-net
- `endpoint::ConnectionInfo` -> `endpoint::RemoteInfo`
- `endpoint::ConnectionInfo::id` is removed since it's internal
information.
- `endpoint::ConnectionInfo::last_alive_relay` is deprecated. Use
`.relay_url.last_alive`
- `endpoint::Endpoint::connection_info` ->
`endpoint::Endpoint::remote_info`
- `endpoint::Endpoint::connection_infos` ->
`endpoint::Endpoint::remote_infos_iter`

### iroh-cli (bin)
- `node connection-info` -> `node remote-info`
- `node connections` -> `node remote-list`

## Notes & open questions

1. We decided to also move many of the (currently) node commands that
come directly from iroh-net to
a new `net` top level api. Doing so we should aim as well to move the
cli to the more gracious
   `remote <node-id>` and `remote list`. In summary:
- we have `iroh node remote <node-id>` and we want `iroh net remote
<remote-id>`
  - we have `iroh node remote-list` and we want `iroh net remote list`
  Issue #2639 is created for this
2. This adds a deprecation that needs to be removed later. Issue #2640
is created for this.

## 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.
- [ ] ~~Tests if relevant.~~
- [x] All breaking changes documented.

---------

Co-authored-by: Diva M <divma@protonmail.com>
Co-authored-by: Kasey <kasey@n0.computer>
2024-08-17 17:55:49 +00:00
Rüdiger Klaehn 2e01d47e7b refactor(iroh-blobs): use oneshot channel from oneshot crate (#2624)
## Description

In several places we need a oneshot channel to communicate between sync
and async code. In particular, there is one place where we intentionally
block inside async code to be able to implement a sync callback (in the
docs code, will go away at some point hopefully).

So far we have used flume and now async_channel channels with capacity 1
for this, which is quite wasteful.

This replaces all oneshot use in the fs store with the oneshot channel
from the oneshot crate, which is pretty minimal and does not panic when
calling blocking_recv from a tokio context.

## Breaking Changes

None

## Notes & open questions

Note: this was part of an attempt to get rid of async_channel in
iroh-blobs. We still need it for sync interactions with the blob store
from inside tokio tasks, for the current docs impl. But hopefully we
should be able to replace the channel for the redb actor with a mpsc
channel once that is sorted out.

## 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.
- [x] Tests if relevant.
- [x] All breaking changes documented.
2024-08-16 07:11:23 +00:00
Rüdiger KlaehnandFriedel Ziegelmayer b8f2b3f4eb tests(iroh): re-enable some flaky tests to see if they are still flaky (#2458)
## Description

<!-- A summary of what this pull request achieves and a rough list of
changes. -->

## 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

- [ ] 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.

Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
2024-08-15 15:36:05 +00:00
Brendan O'Brien 4df1c91f4d refactor(iroh-cli)!: metrics-addr cli arg, metrics off by default (#2631)
## Description

When iroh is running in a docker container, not being able to specify
the full address is an issue. This aligns with the rpc-addr flag.

at the same time–but for different reasons–I'd also like to disable
surfacing metrics by default. My primary reason for this is an
experience I've had numerous times using iroh:
1. Start an initial node
2. Start a second node, on the same machine (usually while debugging or
following a tutorial)
3. See a "can't bind to port" error from the iroh metrics crate
4. Wonder to myself what metrics do, and if they're being sent anywhere
(I know they by default are not)

I think metrics should be treated as an advanced, opt-in feature that
power users discover and are delighted to find. As tribute to this work
I offer to write a docs page about enabling metrics to get this merged.

## Breaking Changes

* `--metrics-port` flag on the iroh cli is now `--metrics-addr`, eg:
specify `127.0.0.1:9090` instead of `9090`

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] 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.
2024-08-15 14:56:18 +00:00
Rüdiger Klaehn 9facd5a333 feat(iroh-net): Add PkarrNodeDiscovery to iroh-net (#2628)
## Description

Deprecate iroh-pkarr-node-discovery and add the full dht based node
discovery to iroh itself.

## Breaking Changes

None

## Notes & open questions

PkarrNodeDiscovery does both resolution and publishing in one thing,
which is different to the two relay based versions.
Should we keep it this way? I think yes, given that we are instantiating
a full dht client and we don't want 2 of them...

Should we keep in the relay options, or remove them and make this one a
pure DHT one?

I copied the example from iroh-pkarr-node-discovery as well.

## 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.
- [x] ~~Tests if relevant.~~
- [x] All breaking changes documented.
2024-08-15 12:39:13 +00:00