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:
parent
779680da71
commit
151eeee51b
10 changed files with 167 additions and 43 deletions
10
README.md
10
README.md
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue