iliekturtles / uom

Units of measurement -- type-safe zero-cost dimensional analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider rust-specific cache action

iliekturtles opened this issue · comments

Instead of manual cache setup, consider a rust-specific action like https://github.com/Swatinem/rust-cache. What do other crates do for caching?

# Cache based on OS/compiler.
- name: Extract cache
uses: actions/cache@v3
with:
path: |
~/.cargo
!~/.cargo/registry/index
!~/.cargo/git/checkouts
target
!target/tests
!target/examples
key: ${{ runner.os }}-${{ steps.install-rust.outputs.cachekey }}

What do other crates do for caching?

As examples, PyO3 and Tantivy just use Swatinem's rust-cache.