Skip to content

cargo-miri fails when cargo uses argfiles #5234

Description

@nazar-pc

I just tried upgrading from nightly-2026-07-22 to nightly-2026-07-31 and on Windows specifically one of the crates produced this surprising set of errors:

error[E0463]: can't find crate for `libp2p`
 --> crates\shared\ab-networking\src\protocols\autonat_wrapper.rs:2:5
  |
2 | use libp2p::autonat::{Behaviour as Autonat, Config as AutonatConfig, Event as AutonatEvent};
  |     ^^^^^^ can't find crate

error[E0463]: can't find crate for `tracing`
  --> crates\shared\ab-networking\src\protocols\autonat_wrapper.rs:13:5
   |
13 | use tracing::debug;
   |     ^^^^^^^ can't find crate

error[E0463]: can't find crate for `void`
 --> crates\shared\ab-networking\src\protocols\reserved_peers\handler.rs:5:5
  |
5 | use void::Void;
  |     ^^^^ can't find crate

...

CI run: https://github.com/nazar-pc/abundance/actions/runs/30605181115/job/91075860190?pr=747
And the commit with toolchain update: nazar-pc/abundance@243f243

But nothing has changed in terms of dependencies, Linux and macOS are unaffected and older toolchain was fine too.

I kind of suspect this might be related to rust-lang/cargo#17258, but I didn't dig into it yet and I'm running Linux, so cross-compiling is a bit difficult with crates like ring unfortunately.

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

    A-windowsArea: affects only Windows targetsC-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions