Use install.root in $CARGO_HOME/config.toml (#884)

Fixed #859

* Impl `cargo_config`
* Use `install.root` in `$CARGO_HOME/.cargo/config.toml`
   before fallback to `cargo_home`.
* Improve logging in `get_cargo_roots_path`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-03-16 11:53:12 +11:00 committed by GitHub
parent 3e830c9fad
commit 58b7044e98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 182 additions and 10 deletions

View file

@ -11,6 +11,7 @@
mod helpers;
pub mod binstall_crates_v1;
pub mod cargo_config;
pub mod cargo_crates_v1;
pub use binstalk_types::{cargo_toml_binstall, crate_info};