| 1 | name: Setup Rust Environment |
| 2 | |
| 3 | inputs: |
| 4 | key: |
| 5 | description: Cache key |
| 6 | required: true |
| 7 | |
| 8 | runs: |
| 9 | using: composite |
| 10 | steps: |
| 11 | - uses: actions/cache@v4 |
| 12 | with: |
| 13 | path: | |
| 14 | ~/.cargo/bin/ |
| 15 | ~/.cargo/registry/index/ |
| 16 | ~/.cargo/registry/cache/ |
| 17 | ~/.cargo/git/db/ |
| 18 | target/ |
| 19 | key: ${{ inputs.key }}-cargo-${{ hashFiles('Cargo.lock') }} |