Compiler copies files when working on my SSD

⚓ Rust    📅 2025-08-20    👤 surdeus    👁️ 3      

surdeus

TL;DR

warning about hard linking files in incremental compilation. Copies of files are popping up on my external SSD in my project outliner. Help me adjust my config if you know what to do!

Howdy Rustaceans!

Long-time fan, first-time poster. Really enjoying the language. I've been pretty burnt out with technology until picking it up for fun, and I've really reignited my spark for computers!

I'm building myself an organizer/planner/calendar app and was doing a quick email-sending test in a sandbox project. My laptop's running out of space so I'm using an external SSD, the Crucial X9 Pro.

I'm just plugging it in and using cargo new to pop open a new project, not much config otherwise, and I'm using RustRover as my IDE. When I build, I get the following:

Warning:

hard linking files in the incremental compilation cache failed. copying files instead. consider moving the cache directory to a file system which supports hard linking in session dir /Volumes/X9 Pro/Rust/sandbox/target/debug/incremental/sandbox-397c0k9vm76yv/s-hacm13pd0k-0osrsr2-working

It does build successfully (and sends me an e-mail!!! yippee!!!), but my project's outliner shows a number of copied files like a ._main.rs under my actual main.rs, among others. What configuration should I do to temporarily resolve this?

My longer-term solution is a homelab setup with an old laptop running a linux server, but I'm just trying to fix what's in front of me at the moment. Thanks in advance for guidance!

Cheers,
Autumn :fallen_leaf:

4 posts - 3 participants

Read full topic

🏷️ Rust_feed