this post was submitted on 24 Mar 2024
25 points (100.0% liked)

Rust

7102 readers
72 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 1 year ago (1 children)

Another option is to compile dependencies with LLVM and optimizations, which will likely be done only once in the first clean build, and then compile your main binary with Cranelift, thus getting the juicy fast compile times without having to worry about the slow dependencies.

[โ€“] [email protected] 1 points 1 year ago

Yes. And to complete the pro tips, the choice of linker can be very relevant. Using mold would come recommended nowadays.