3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-12-26 14:56:38 +00:00

Add support for running rust-cache commands from within a Nix shell (#290)

This commit is contained in:
marc0246 2025-12-01 19:56:12 +01:00 committed by GitHub
parent 779680da71
commit 151eeee51b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 167 additions and 43 deletions

View file

@ -99,6 +99,16 @@ sensible defaults.
# Determines whether to cache the ~/.cargo/bin directory.
# default: "true"
cache-bin: ""
# A format string used to format commands to be run, i.e. `rustc` and `cargo`.
# Must contain exactly one occurance of `{0}`, which is the formatting fragment
# that will be replaced with the `rustc` or `cargo` command. This is necessary
# when using Nix or other setup that requires running these commands within a
# specific shell, otherwise the system `rustc` and `cargo` will be run.
# default: "{0}"
cmd-format: ""
# To run within a Nix shell (using the default dev shell of a flake in the repo root):
cmd-format: nix develop -c {0}
```
Further examples are available in the [.github/workflows](./.github/workflows/) directory.