]> git.seodisparate.com - AnotherAURHelper/commitdiff
Add notes about `link_cargo_registry`
authorStephen Seo <seo.disparate@gmail.com>
Mon, 20 Mar 2023 05:48:33 +0000 (14:48 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 20 Mar 2023 05:48:33 +0000 (14:48 +0900)
README.md
example_config.toml

index a83d2529a704bbe96ba72bb1a4b5077d15aa300d..d0430477bbab49a23750920fdb88e3bb7f649d8c 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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.
index c721e855182ae28d3613ed4c2720224c63a640b2..1b96c14da573721f86598203e7f32261ee73622b 100644 (file)
@@ -98,6 +98,7 @@ skip_branch_up_to_date = true
 
 [[entry]]
 name = "ion-git"
+link_cargo_registry = true
 
 [[entry]]
 name = "ly"