nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.25k stars 41 forks source link

question: where is .install_config.toml? #161

Closed whoizit closed 3 years ago

whoizit commented 3 years ago
~ > rustc -V
rustc 1.55.0-nightly (67b03007c 2021-07-23)
~ > cargo -V
1.55.0-nightly (cebef2951 2021-07-22)
~ > cargo install-update -V
cargo-install-update-install-update 7.0.1

I do:

~ > cargo install-update-config shadowsocks-rust --feature aead-cipher-extra,dns-over-https,local-dns,local-redir       
Default features  true
Features          aead-cipher-extra
                  dns-over-https
                  local-dns
                  local-redir
~ > cargo install-update shadowsocks-rust --force
...
   Compiling shadowsocks-rust v1.11.2
    Finished release [optimized] target(s) in 14m 39s
   Replacing /home/user/.asdf/installs/rust/nightly/bin/sslocal
   Replacing /home/user/.asdf/installs/rust/nightly/bin/ssmanager
   Replacing /home/user/.asdf/installs/rust/nightly/bin/ssserver
   Replacing /home/user/.asdf/installs/rust/nightly/bin/ssurl
    Replaced package `shadowsocks-rust v1.11.2` with `shadowsocks-rust v1.11.2` (executables `sslocal`, `ssmanager`, `ssserver`, `ssurl`)

Updated 1 package.
Overall updated 1 package: shadowsocks-rust.

new binaries seems like with enabled features, but I can't found ~/.cargo/.install_config.toml

~ > l -1 .cargo
.package-cache
registry
.crates2.json
.crates.toml
bin
config

nothing about shadowsocks in this files

whoizit commented 3 years ago

i found it here .asdf/installs/rust/nightly/.install_config.toml

nabijaczleweli commented 3 years ago

To answer why it's there, specifically: it's next to the final Cargo config[.toml] file, after walking install.root keys down from $CARGO_INSTALL_ROOT/$CARGO_HOME/$HOME/.cargo.