this post was submitted on 20 Oct 2023
11 points (100.0% liked)

Rust

5989 readers
21 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

I have a few Node.js repositories on my computer which I back up daily. In order to have tar exclude the dependencies, I have to place a CACHEDIR.TAG file in each node_modules directory.

The problem is that every time npm install runs it deletes those files. So it was necessary to complicate my script with a pre-backup hook that writes a new tag into each directory.

Today I'm playing around with Rust for the first time. I ran cargo build and looked inside the target folder and saw a CACHEDIR.TAG. I couldn't believe my eyes--it takes care of that by default! This is literally the first time I've seen this implemented in anything.

you are viewing a single comment's thread
view the rest of the comments
[–] robinm@programming.dev 5 points 1 year ago

I didn't know about CACHEDIR.TAG, that's good to know. And yes, Rust tooling is stellar.