Add notes about link_cargo_registry
This commit is contained in:
parent
7c4fdfa307
commit
3fd1263d80
2 changed files with 10 additions and 0 deletions
|
@ -183,3 +183,12 @@ integrity checks are done separately.
|
||||||
|
|
||||||
If the hook was used previously, remove it from `/etc/pacman.d/hooks` and
|
If the hook was used previously, remove it from `/etc/pacman.d/hooks` and
|
||||||
reinstall `devtools`.
|
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.
|
||||||
|
|
|
@ -98,6 +98,7 @@ skip_branch_up_to_date = true
|
||||||
|
|
||||||
[[entry]]
|
[[entry]]
|
||||||
name = "ion-git"
|
name = "ion-git"
|
||||||
|
link_cargo_registry = true
|
||||||
|
|
||||||
[[entry]]
|
[[entry]]
|
||||||
name = "ly"
|
name = "ly"
|
||||||
|
|
Loading…
Reference in a new issue