visual-studio-coderustrust-analyzer

How do I change the Rust Analyzer target directory?


The default Rust Analyzer target directory is called target which conflicts with the name used when cargo build is run.

How can I change the target directory from target to some other name?


Solution

  • Go to Rust Analyzer Extension Settings, search for args.

    Add the following two values: