Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does the Rust macOS pkg installer install to?

Tags:

macos

rust

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.

like image 347
Eran Medan Avatar asked May 16 '15 02:05

Eran Medan


People also ask

Where does Rust install macOS?

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 .

Where macOS install files are stored?

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.

Where is my Rust install directory?

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 .


2 Answers

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.

like image 179
Dzmitry Misiuk Avatar answered Sep 28 '22 04:09

Dzmitry Misiuk


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.

like image 31
Manishearth Avatar answered Sep 28 '22 04:09

Manishearth