Remix.run Logo
▲ flykespice a day ago

What the hell are you doing to produce 90gb of temp files? Is that normal on rust land?

▲adastra22 a day ago | parent | next [-]

It's large but not insane. I've got 20gb in a not-too-large repo.

▲a96 19 hours ago | parent [-]

That is frankly insane IMO. 20 MB would be insane unless there's massive libraries or something. 20 GB is the size of a very fat graphical operating system.

▲adastra22 2 hours ago | parent | next [-]

Exactly, yes. My project uses a GUI framework developed as part of a graphical operating system written in rust. Cargo fetches quite a big subset of that graphical OS in order to build this dependency, which is statically compiled into my app.

▲mixmastamyk 9 hours ago | parent | prev | next [-]

It’s Windows 10 install storage requirement.

▲flykespice 14 hours ago | parent | prev [-]

I think even Gradle produce much less cache files...

▲p2detar 12 hours ago | parent [-]

I thought the same thing. My current Gradle cache folder sits around 6GB and it includes cache from around 20 to 40 projects, including different wrapper versions.

▲kstrauser a day ago | parent | prev [-]

No. My target directory is 329GB at the moment. I wish mine were just 90GB.

(And yet I’m perfectly happy running `cargo clean` periodically in exchange for all the Rust loveliness. Sure, I wish I didn’t need to. Sure, I hope it’ll get better. I can live with the temporary inconvenience though.

Also, I’m developing in a tight auto-build-on-commit loop so I have a gazillion builds.)

▲soon_to_be_sb a day ago | parent | next [-]

Yea, I was thinking the same. 90gb is not that big. Last week I cleared 130gb out of the target dir.

▲simonask 20 hours ago | parent | prev | next [-]

These numbers are totally insane. I've never seen a Rust project with a build cache this large.

Do you have 10 different versions of Tokio included in your project or something?

The project I'm currently working on is quite large, and it's locally cross-compiled to 5 different arch/OS combinations, plus a debug build for the local machine. The build dir is 9.1 GB. I've seen it grow to somewhere around 20 GB, but only after a significant number of dependencies were updated, or the compiler version changed.

A clean debug build of Bevy (a game engine, one of the largest Rust projects around) produces a target dir of around 13 GB. By the way, rebuilding Bevy on my machine takes about 1 minute.

Now, these numbers are still much bigger than I would have preferred, but 329 GB? Get out of here.

▲flykespice 16 hours ago | parent | prev [-]

329gb?? That is larger than my entire SSD storage.

It would be more believable if you told me you were making your own GTA VI