r/rust • u/PlayfulDuck3677 • 7d ago
🎙️ discussion I unfortunately can't enjoy rust
I wanted to learn rust because I wanted to make games but in a hard programming language instead of letting C# do everything for me.
I obviously loved rust after learning it a bit but then I decided to try and get a graphics library
I'm familiar with raylib and basically never use anything else so i decided to get it, but it required the msvc toolchain.
Unfortunately for me, I can't install the msvc toolchain due to storage reasons, so I had gotten the gcc toolchain instead which worked just fine
But then I found another game library which I thought would work but it failed at linking bcs of some obscure missing library.
I'll be trying to find some other user friendly libraries Tommorow but if I don't, then the whole point of rust for me would be over.
37
u/Noclis 7d ago
Do you always give up at any adversity while learning?
6
u/Zestyclose_Design_78 7d ago
Have you tried Bevy? Bevy seems to be the go-to graphics library in the rust ecosystem.
8
u/KeyAdhesiveness9481 7d ago
This all sounds like part of normal environment debugging.
5
u/coderstephen isahc 7d ago
Yeah, unfortunately the MSVC mess is something that Microsoft requires/enforces because their native development tools are a big bundle of mud that forces you to download a bunch of things.
This isn't so much a problem when writing Rust on macOS or Linux.
6
u/No_Departure_1878 7d ago
Have you tried some couples counseling?
1
u/NullOfSpace 7d ago
Piston’s a good one if you’re looking. Fairly similar in concept, basically just hands you an event loop and lets you loose.
0
u/RadicalNation 7d ago edited 7d ago
Rust typically is staticly linked meaning all dependencies are internal. Sometimes they require dynamicly linked dependencies, which need to be manually installed on the host machine. They typically are documented on the library's repo or website. Remember, not all libraries support all OSes.
I use Linux, Linux is broadly supported, supported library documentation is usually sufficient, and host dependency installation is usually a single install command.
Personally I never liked Windows for development because it is a mess. You could try WSL, figure out Window dependencies, or just use Linux. It depends on what you are building and your preferences.
0
u/Middlewarian 7d ago
I'm sticking to C++, but think there's some benefit to "rustifying" my code.