

#INSTALL RUST FOR MAC INSTALL#
#INSTALL RUST FOR MAC CODE#
To enable rust support in VS Code we will make use of the rust language server (RLS).

Rust support for VS Code official site can be found here: If you want to launch VS Code from the command line by executing code, after installing VS Code open the Command Palette using Shift+Command+p on a Mac or Shift+Control+p on Linux and search for Shell Command: Install ‘code’ command in PATH option. If not already installed, then head over to and install VS Code. First Hello World Project Install VS Code Note: you may need to exit and reload the terminal for path updates to take effect. Which should return rustc with the version number. You can uninstall at any time with rustup self uninstall and these changes will be reverted.Īfter running rustup-init you will be presented with various options - just go ahead and use the default option - option 1 1) Proceed with installation (default) Verify installationĪt the command line prompt in terminal: ❯ rustc - version rustc 1.46.0 (04488afe3 ) Install compiler and package manager.Īt the command line prompt in terminal: ❯ rustup-init Note: If rust is already installed it can be updated using rustup update. If you don’t have homebrew installed on your Mac then I suggest you treat yourself and go install it - checkout homebrewĪt the command line prompt in terminal: ❯ brew install rustup Official notes can be found here: Installing rust using brew. I recommend installing rustup as it allows for switching between different versions of rust - important in my case, as I will be wanting to cross compile for ARM processors. This article is about setting up Visual Studio Code on the MacOS environment. For larger backend projects, typically backend server or cross development projects I prefer developing on my Linux Box.
#INSTALL RUST FOR MAC PRO#
I develop using two different environments, one being a Macbook Pro which I use for initial scaffolding, scratch pads and proof of concept, as I like to move around the house when I work - working indoors and outdoors trying to catch some of mother nature’s healing powers 😄. There is a lot of information out there and I don’t profess this is the best or only way, but it is an amalgamation of a variety of articles leaning heavily on official documentation and it’s worked for me.

This write-up is about configuring VS Code to write, build, and debug Rust applications. Today my preferences are IntelliJ and VS Code. I cut my teeth on basic text editors and quickly adopted to various IDEs over the years as they help speed up workflow. I am not a big fan of VIM and basic editors. This post will assist anyone wanting to develop Rust applications using Visual Studio Code (VS Code) as of 2020. Rust has been gaining popularity and is seeing tremendous adoption amongst developers.
