Skip to content

chore(deps): fix unused crates warnings of rust 1.100 - #899

Merged
flub merged 2 commits into
mainfrom
flub/unused-crates
Nov 18, 2026
Merged

flub merged 2 commits into
mainfrom
flub/unused-crates

Conversation

@flub

@flub flub commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Description

rust 1.100 finally warns us about unused crates, which is nice. But now the crates we have as an indirect dependency to make our unused crates work correctly trigger the warning.

Apparently what we were supposed to do was add a cfg(false) section for those dependencies. That does not trigger the warnings and still affects the resolution. It also made us notice tokio-streams is now accidentally used.

So I moved tokio-streams to the normal dependencies. The rest of the normal dependencies is only re-ordered to be alphabetical (it is always supposed to be but we don't lint on it).

API Changes

n/a

Notes & open questions

n/a

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All API changes documented.
  • cargo make passes locally.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/noq/pr/899/docs/noq/

Last updated: 2026-11-18T08:58:58Z

@flub flub mentioned this pull request Nov 18, 2026
4 of 5 tasks
@n0bot n0bot Bot added this to iroh Nov 18, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Nov 18, 2026
@flub flub changed the title deps: Remove unused crates deps: fix unused crates warnings of rust 1.100 Nov 18, 2026
@flub

flub commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

see #900 for cargo-deny

@flub
flub requested a review from a team November 18, 2026 01:08
@flub
flub enabled auto-merge November 18, 2026 03:21
Stanley00 pushed a commit to stanley-fork/noq that referenced this pull request Nov 18, 2026
## Description

That's fine for now.

## API Changes

n/a

## Notes & open questions

`cargo make` needs n0-computer#899 to be merged. But that needs this to be
unblocked because the world is just mad.

## 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 API changes documented.
- [ ] `cargo make` passes locally.
flub added 2 commits November 18, 2026 09:57
rust 1.100 finally warns us about this, how nice.

This is also needed to make `cargo make` pass on rust 1.100.
This setup is so much better, we detect now when we accidentally start
using such a dep, like in the case of tokio-stream.
@matheus23 matheus23 changed the title deps: fix unused crates warnings of rust 1.100 chore(deps): fix unused crates warnings of rust 1.100 Nov 18, 2026
@flub
flub added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 5d48569 Nov 18, 2026
34 checks passed
@flub
flub deleted the flub/unused-crates branch November 18, 2026 09:10
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Nov 18, 2026
@flub
flub requested review from a team and ramfox and removed request for a team and ramfox November 18, 2026 23:25
emrul added a commit to GetAster/noq that referenced this pull request Nov 24, 2026
* upstream/main: (24 commits)
  refactor(proto): call the std-only float math through crate-root helpers (n0-computer#848)
  refactor(proto): Avoid PathId allocation when building PATH_ACKS (n0-computer#901)
  chore: Release
  chore(deps): fix unused crates warnings of rust 1.100 (n0-computer#899)
  chore: Update issue template checkboxes (n0-computer#897)
  chore: humantime is unmaintained (n0-computer#900)
  chore(ci): fix workflows for test binaries locations (n0-computer#896)
  fix(perf): don't enable qlog feature in perf binary (n0-computer#850)
  fix(proto): track the key update boundary per path (n0-computer#869)
  tests: additional stream affinity tests (n0-computer#890)
  feat: allow streams to set an affinity for a path, simple version (n0-computer#881)
  fix(udp): handle receive errors before truncation flags in recv_single (n0-computer#884)
  chore: Upgrade async-executor and allow warnings in patchbay build (n0-computer#888)
  chore: Use shared minimal-crates worksflow (n0-computer#862)
  tests: Increase local slow-tests timeout (n0-computer#860)
  fix(proto): keep unread data when compacting an unordered stream (n0-computer#867)
  fix(proto): coalesce contiguous chunks during defragment (n0-computer#866)
  deps: Bump tokio for RUSTSEC-2026-0386 (n0-computer#868)
  feat(proto): Implement `noq_proto::SendStream::set_affinity` (n0-computer#836)
  fix(ci): bump deps for illumos (n0-computer#856)
  ...
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