Skip to content

chore(portmapper): Update to rand 0.10#118

Merged
matheus23 merged 2 commits into
mainfrom
matheus23/rand-0.10
Mar 18, 2026
Merged

chore(portmapper): Update to rand 0.10#118
matheus23 merged 2 commits into
mainfrom
matheus23/rand-0.10

Conversation

@matheus23
Copy link
Copy Markdown
Member

Description

Updates to rand 0.10.

Breaking Changes

No API-breaking changes. Rand use is internal.

@matheus23 matheus23 self-assigned this Mar 17, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 17, 2026

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/net-tools/pr/118/docs/net_tools/

Last updated: 2026-03-18T07:17:29Z

@matheus23 matheus23 merged commit b2bcd6c into main Mar 18, 2026
27 checks passed
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Mar 18, 2026
@matheus23 matheus23 deleted the matheus23/rand-0.10 branch March 18, 2026 08:06
matheus23 added a commit to n0-computer/iroh that referenced this pull request Mar 30, 2026
## Description

Updates the `rand` dependency to version 0.10.
As part of that, this also updates `rand_core`, `rand_chacha`, and a
bunch of cryptography crates like `curve25519-dalek`, `ed25519-dalek`,
`digest`, `sha1` and `sha2`. Some of the latter ones to prerelease
versions to enable compilation.

## Breaking Changes

- `iroh::SecretKey::generate`'s `CryptoRng` parameter is now updated
from rand 0.9 to rand 0.10

## Notes & open questions

Although this is ready for review, it's not ready to be merged yet,
because of patched dependencies.

This is the current TODO list:
- [x] ~~fastbloom needs to update to rand 0.10 and make a new release:
tomtomwombat/fastbloom#27 (we can just disable
fastbloom's rand feature)
- [x] noq will need to merge n0-computer/noq#511
once unblocked from fastbloom
- [x] swarm-discovery needs updating to hickory 0.26
rkuhn/swarm-discovery#21
- [x] portmapper will need to merge
n0-computer/net-tools#118
- [x] tokio-websockets has released with rand 0.10 support
- [x] igd-next has released with rand 0.10 support
- [x] And finally, hickory has released [a first beta for version
0.26](https://docs.rs/crate/hickory-resolver/0.26.0-beta.1), but it has
*a lot* of API changes and I'm working towards adjusting iroh code to
them.

## Change checklist
<!-- Remove any that are not relevant. -->
- [x] Self-review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants