rust icon indicating copy to clipboard operation
rust copied to clipboard

rustix: missing declaration of CWD

Open nielx opened this issue 1 year ago • 1 comments

When building Rust 1.73.0 + Cargo 0.74.0:

error[E0432]: unresolved import `rustix::fs::CWD`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tempfile-3.7.0/src/file/imp/unix.rs:17:55
   |
17 | use rustix::fs::{linkat, renameat, unlinkat, AtFlags, CWD};
   |                                                       ^^^ no `CWD` in `fs`

   Compiling thiserror-impl v1.0.44

src/tools/cargo/Cargo.lock is pinning tempfile at 3.7.0, depending on rustix 0.38.6.

There is some chatter about this issue in https://github.com/bytecodealliance/rustix/issues/478, though have not verified it myself.

nielx avatar Oct 30 '23 06:10 nielx

Looks like bumping tempfile to 3.7.1 should work: https://github.com/Stebalien/tempfile/commit/bf8f7ea4362894f572935ea730a271378d7277f2

nielx avatar Oct 30 '23 06:10 nielx