Slow Rust Builds? Here are some tips to speed up your compile times. This list was originally released on my private blo…
Wrapping heavy dependencies as dynamic libraries can help during development.
Slow Rust Builds? Here are some tips to speed up your compile times. This list was originally released on my private blo…
cargo-add command to make dependencies into dylibs - rksm/cargo-add-dynamic
Slow Rust Builds? Here are some tips to speed up your compile times. This list was originally released on my private blo…
Having a language that does a lot of checks at compile time is not free, it will impact compilation times. Luckily there are some things we can do to speed things up: Dynamic linking, be careful with code generation and caching dependencies. Dynamic linking is a somewhat difficult thing to achieve in Rust but not impossible. The main reason is that at the time of writing this (Sept-Oct 2024) Rust does not have its own stable ABI and it must rely on the C binary representation (if we want to inter-operate with other languages or other Rust versions). This has some interesting consequences that we will explore in this post.