Is Linux Recommended for Rust Dev Environment?

Hi,

I've been asking about setting up Rust on Windows but using non-msvc toolchain. The standard windows gnu toolchain that uses msvcrt seems OK (even though it doesn't use ucrt).

This got me thinking. Now that I'm no longer interested in using msvc (and VS) and I have used Linux desktop in the past, perhaps I could use Linux for using Rust.

On Linux, could one use either gcc or clang (whereas on Windows this has complications)?

Do IDEs GUIs, e.g. RustRover, work well and have a good graphical appearance on Linux? Linux seems a great environment for developers and Rust seems like an easier installation on Linux without complications of ABI and crt compatibility etc.

So, my plan is to switch to Linux but I'm interested in input regarding this path. Recommend?

Thank You!

What is your target system for the compiled binaries?

Server code. Originally Linux, ported to Windows. Linux target is fine.

The IDEs you'd use on Linux are the same as on Windows, so they'll look and feel (almost) exactly the same (allowing for platform differences like the file picker).

As for which compiler to use, it doesn't really matter. Just so long as you've got at least one installed.

So yes, I'd highly recommend it! I switched a while back, and it's been smooth sailing. Linux has its troubles too, but I'd say it's a much better platform for development than Windows.

That said, it comes down to personal preference and workflow. Try it and see!

2 Likes

Stick with a gnu/linux distro. Don't use your distro's rust package, use rustup and save yourself headaches.

2 Likes

OK great. Thanks! (I'm running Linux now. Happy to be back to Linux. It's debian. I generally use debian, they are one of the first distributions. Yes, they call it gnu/Linux :slight_smile: )

1 Like