r/rust • • 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

390 comments sorted by

View all comments

Show parent comment

13

u/rvdomburg cpal Nov 18 '22

use the 'cargo build --jobs $(nproc)' to use all your cores.

Doesn't cargo do that by default? https://doc.rust-lang.org/cargo/reference/config.html seems to say so.

2

u/mindmaster064 Nov 18 '22

In theory, yes...

In reality, I am not sure what it is doing to detect the cores/threads but if I specify them I no longer care and it seems to work more consistently for whatever reason. YMMV, best solution is just to hard code them into your config so you don't have to type it and get it over with.