Add notes about `link_cargo_registry`

This commit is contained in:
Stephen Seo 2023-03-20 14:48:33 +09:00
parent 7c4fdfa307
commit 3fd1263d80
2 changed files with 10 additions and 0 deletions

View File

@ -183,3 +183,12 @@ integrity checks are done separately.
If the hook was used previously, remove it from `/etc/pacman.d/hooks` and
reinstall `devtools`.
## `link_cargo_registry`
If you have `.cargo/registry` and `.cargo/git` in your home directory, and you
don't want to re-download the Rust registry every time you update a Rust
package, you can specify `link_cargo_registry = true` for a package in your
config (see `ion-git` in the `example_config.toml`) and that will bind-mount
these two directories into the chroot, which will share your local Rust cache
with the chroot.

View File

@ -98,6 +98,7 @@ skip_branch_up_to_date = true
[[entry]]
name = "ion-git"
link_cargo_registry = true
[[entry]]
name = "ly"