Skip to content

Unused dependency warnings on nightly #1274

Description

@theemathas

As of rust version 1.100.0-nightly (2026-09-02 2e2b193f8ada105f2760), the playground emits a lot of "unused dependency" warnings like below. It would be nice if they were suppressed.

warning: unused build dependency `addr2line`
 --> Cargo.toml:1:21
  |
1 | [build-dependencies.addr2line]
  |                     ^^^^^^^^^^
  |
  = note: `cargo::unused_dependencies` is set to `warn` by default
help: consider removing the dependency on `addr2line`
warning: unused build dependency `adler2`
 --> Cargo.toml:6:21
  |
6 | [build-dependencies.adler2]
  |                     ^^^^^^^
  |
help: consider removing the dependency on `adler2`
warning: unused build dependency `ahash`
  --> Cargo.toml:11:21
   |
11 | [build-dependencies.ahash]
   |                     ^^^^^^
   |
help: consider removing the dependency on `ahash`
warning: unused build dependency `aho_corasick`
  --> Cargo.toml:15:21
   |
15 | [build-dependencies.aho_corasick]
   |                     ^^^^^^^^^^^^^
   |
help: consider removing the dependency on `aho_corasick`

(etc)

This is probably a side effect of rust-lang/cargo#17298

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions