# Adjust Cargo caching in CI \(\#8494\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/83bc24b48006414b1a48f42f7fba1c3ff716ef86)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 83bc24b48006414b1a48f42f7fba1c3ff716ef86

Requested commit: 83bc24b48006414b1a48f42f7fba1c3ff716ef86

Commit: 83bc24b48006414b1a48f42f7fba1c3ff716ef86

Tree: c760e8a7ba83aab37e81fac0d9201f8cc728e502

Author: Marshall Bowers

Committer: GitHub

## Message

```
Adjust Cargo caching in CI (#8494)

This PR adjusts the way we cache Cargo dependencies in CI.

We're trying out
[swatinem/rust-cache](https://github.com/swatinem/rust-cache) to see if
it can improve our caching strategy such that we're able to get more
cache hits on PRs.

We'll only write to the cache on `main` in the hopes that it will
mitigate the amount of thrashing of the cache.

Release Notes:

- N/A
```

## Parents

- [7acd6879db8a9524ef938aeaaa683598bb1f47bc](https://git.cafe/gitcafe/zed/commit/7acd6879db8a9524ef938aeaaa683598bb1f47bc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/83bc24b48006414b1a48f42f7fba1c3ff716ef86?format=markdown)
