I want to try the Eclipse-based Rust IDE RustDT and it asks for the Rust installation and source directories. I assume the source directory is relative to the installation directory, but I have no clue where it is installed.
In the Rust development environment, all tools are installed to the ~/.cargo/bin directory, and this is where you will find the Rust toolchain, including rustc , cargo , and rustup .
Unlike most files, the macOS installer isn't located in the Downloads folder after you download it. Instead, you'll find the macOS installer located in your Applications folder.
rustup installs rustc , cargo , rustup and other standard tools to Cargo's bin directory. On Unix it is located at $HOME/. cargo/bin and on Windows at %USERPROFILE%\. cargo\bin .
Rust executable binaries (rustc
, cargo
, rustdoc
) are installed to /usr/local/bin
by default with the macOS installer. Rust libraries are installed to /usr/local/lib/rustlib/
.
To use RustDT, you should install Racer following the instructions from the repository.
After Racer is installed, you should configure the path to rustc
, racer
, and the source files for Rust in the RustDT preferences.
I'm not sure of this, but I think you need to clone the source seperately. RustDT uses racer (I think) which needs uncompiled source code.
Cloning this branch on github and pointing to it should do the trick. No need to build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With