cargo-cache icon indicating copy to clipboard operation
cargo-cache copied to clipboard

How did you find out about cargo-cache?

Open matthiaskrgr opened this issue 5 years ago • 14 comments

Hi, if you read this and use cargo cache, please let me know how you found out about this project and leave a comment on this ticket. :) I am curious to know!

matthiaskrgr avatar Jul 24 '19 06:07 matthiaskrgr

I wanted to completely clear my cargo cache. I searched for cargo clear cache and this repo was one of the top results (using Duck Duck Go).

demurgos avatar Oct 12 '19 21:10 demurgos

Just learned about this on Twitter now and will be trying this out today: https://twitter.com/DappForce/status/1183111484911566848?s=09

Zooce avatar Oct 13 '19 15:10 Zooce

I noticed cargo search --help suggests --offline might do something useful and figured it would inspect the cache. Turns out it doesn't (see also: https://github.com/rust-lang/cargo/issues/1506).

$ cargo search --offline -- nom
error: can't make HTTP request in the offline mode

After some manual poking around in my ~/.cargo/registry/cache/ I searched the web for cargo search cache and found a link to this project on crates.io.

$ cargo install cargo-cache
$ cargo cache query nom
Registry cache sorted by name:
	nom-4.2.3: 115343
	nom-5.0.1: 128602

Registry source cache sorted by name:
	nom-4.2.3: 656802
	nom-5.0.1: 788878

It works! Thanks.

jmitchell avatar Oct 16 '19 17:10 jmitchell

I was actually looking for something different, a global cache for cargo builds across different projects ... But this also sounds very useful thanks :)

didil avatar Nov 17 '19 07:11 didil

You might be looking for sccache.

matthiaskrgr avatar Nov 17 '19 10:11 matthiaskrgr

Star from Jon!

Screen Shot 2020-03-11 at 10 20 14 am

twe4ked avatar Mar 10 '20 23:03 twe4ked

Thanks!

Also just found this twitter thread mentioning it: https://twitter.com/nick_r_cameron/status/1237481127129960448

matthiaskrgr avatar Mar 11 '20 09:03 matthiaskrgr

Explained in https://github.com/matthiaskrgr/cargo-cache/issues/76#issuecomment-629653999 (while advocating for a new feature).

mzabaluev avatar May 16 '20 14:05 mzabaluev

Had the same exact idea. Was gonna be my toy project. Now I'll need to find something new! hehehe. Nice job with this crate!

CPerezz avatar Jan 09 '21 19:01 CPerezz

Found it on the issue tracker: https://github.com/rust-lang/cargo/issues/3289

mainrs avatar Mar 22 '21 15:03 mainrs

I found this issue itself through the link generated from @SirWindfield's comment above 😁

My company has some Rust shared libraries hosted on a private Git server. I set up a launchd agent on macOS to add my identity to ssh-agent and wanted to make sure it was working. I was looking for a way to clear out downloaded Git repos that were cached so I could try again from a clean state. cargo-cache worked great!

seanfisk avatar Apr 16 '21 18:04 seanfisk

Seen it mentioned in Rust's Matrix channel, immediately installed :smiley:

numero-744 avatar Jan 07 '22 11:01 numero-744

Found it via your comment in via rust-lang/cargo#3289

exoosh avatar Jan 05 '23 12:01 exoosh

Hi Matthias,

I found about your cargo cache when low on disk space on my GIT/Rust partition :).

The source was some article about purging the cargo cache, and/or about cleaning up when cargo artifacts/cache is sick. Either way, thank you.

peter-lyons-kehl avatar Apr 03 '23 16:04 peter-lyons-kehl