Hi, I need to dynamically set proxy variables before calling Cargo, so I created a wrapper around cargo to do that. I'm trying to make VSCode use that wrapper. Found and set these relevant settings:
Hi @yurigo - Did you find a solution for your issue?? I am running into similar issue, cargo metadata fetch is failing in the Rust-analyzer in VS-code.
I need to replace crates.io to the private registry and to do so I prepared a config.toml. Things are working fine from the Terminal (including cargo fetch metadata) but failing in the vs-code rust-analyzer
@vague - I tried setting config file path as environment variable. But, my issue is fixed now - it was some script in my bash profile that is running for more than 60 secs during init causing vscode bail on fetching env variables.
It's good to know we can directly set default registry like you mentioned instead of me defining the config.toml.