Preferred plants to establish through rustup (https://www.rustup.rs).
It will set and rust and cargo, and update their will (the command "rustup update", https://github.com/rust-lang-nursery/rustup.rs).
Append path at the cargo/bin, although rustup and he may prescribe.
As for the VSCode, it is necessary to install the extension Rusty Code.
Next, install racer (for autocomplete), rustfmt (formats code when saving a file, https://github.com/rust-lang-nursery/rustfmt)
, rustsym (to go to sym, https://github.com/trixnz/rustsym)
, cargo-check (when saving the file will compile it on the fly and widepath console VSCode error messages, https://github.com/rsolomo/cargo-check).
It is better to install using the command "cargo install", it's more convenient.
Ie, in the console just do the following:
cargo install rustfmt
cargo install racer
cargo install rustsym
cargo install cargo-check
This will are installed in the directory cargo/bin, where we have written the path in your PATH because VSCode can easily find them.
I have set cargo install cargo-edit (https://github.com/killercup/cargo-edit)
, then the racks in the Cargo.toml for their projects, you can not manually register (doc.crates.io/guide.html)
, and the command "add cargo".
For racer need to set the environment variable environment RUST_SRC_PATH, putting the path to the downloaded separately and unzipped rust source code (subdirectory src).
PS: the Error you are what cargo the install is trying to install a program, and binarity already the paths are. You just need to manually delete them, or call the appropriate commands "cargo install --force" to update the binaries.