r/rust • u/rustacean1337 • Nov 17 '22
What are Rust’s biggest weaknesses?
What would you say are Rust’s biggest weaknesses right now? And are they things that can be fixed in future versions do you think or is it something that could only be fixed by introducing a breaking change? Let’s say if you could create a Rust 2.0 and therefore not worry about backwards compatibility what would you do different.
220
Upvotes
View all comments
Show parent comment
1
u/idcmp_ Nov 19 '22
With Go, I type `GOOS=darwin GOARCH=amd64 go build .` and I get Mac x86_64 binary - doesn't matter what OS or architecture I'm on when I do this.
Yes, cgo and a number of other things make this rougher, but if "cross platform compatibility" is a design goal of my Go program, I can make design choices to ensure things work.
Rust's solution with Docker images is an acknowledgement of how hard it is to cross-compile.