I've just installed Rust on my Mac. I've never used Rust before and apart from a bit of Mac utility scripting I haven't done much coding for a very long time.
I'm looking at this page
In the part with the red background I've got as far as successfully creating the "hello-rust" directory. The next steps don't work. It says
" cargo new generates a "Hello, world!" project for us! We can run this program by moving into the new directory that we made and running this in our terminal: 'cargo run'
So went into hello-rust and typed 'cargo run'
A huge error message resulted.
It starts with "error: linking with cc failed: exit status: 1"
It finishes with "= note: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun"
And has a lot of stuff in the middle along the lines of (I've not pasted it all)
Rust needs a working C toolchain to link against system libraries (which are usually written in C). On a Mac, you will need to install the "Xcode Command-Line Tools". (They have absolutely nothing to do with Xcode, so don't worry – you don't have to download the whole 20+ GB beast. The "Xcode" command line tools are actually just the standard Clang toolchain: the clang and clang++ compilers, a linker, and the required components of the LLVM compiler library, along with some macOS-specific libraries.)
Unfortunately this is one of those questions that tends to autostimulate everyone to take their own favourite dog for a walk. I use neovim, but wouldn't recommend it for most people starting afresh.
The conventional (and IMO wisest) advice is to use what you already know. Learning any new language is enough of a challenge. You don't want to add unnecessarily to the burden. Most of the widely used editors support Rust well enough to get started with.
However, given you write
perhaps you're not still familiar enough with any particular editor to easily jump into? If so, I'd suggest VSCode. It has so dominated recent mindshare (for better or worse) that all tooling has to work well with it. It's easy to get started with. If later down the track you decide you prefer something else, you won't have sunk too many costs.