|
You are here |
github.com | ||
| | | | |
kobzol.github.io
|
|
| | | | | Disk usage of the target directory is a commonly cited annoyance with Rust (and Cargo) - in the last year's Annual Survey, it was the third most pressing issue of Rust users, right after slow compilation1 and subpar debugging experience. Given the "build everything from source" compilation model of Rust, and both debuginfo and incremental compilation being enabled by default in the dev Cargo profile, it is unlikely that the target directory will ever become lean and small. However, there are still ways of how we could reduce the target directory size by a non-trivial amount. I will describe a brand-new method of achieving that in this blog post. Funnily enough, making compilation faster can sometimes increase disk usage; for example, the incremental system o... | |
| | | | |
brokenco.de
|
|
| | | | | I have been using sccache to improve feedback loops with large Rust projects and it has been going okay but it hasn't been the silver bullet I was hoping for. sccache can be easily dropped into any Rust project as a wrapper around rustc, the Rust compiler, and it will perform caching of intermediate build artifacts. As dependencies are built, their object files are cached, locally or remotely, and can be re-used on future compilations. sccache also supports distributed compilation which can compile those objects on different computers, pulling the object files back for the final result. I had initially hoped that sccache would solve all my compile performance problems, but surprising to nobody, there are some caveats. | |
| | | | |
hoverbear.org
|
|
| | | | | A computer scientist working in open source towards a more hopeful future. | |
| | | | |
ricardomartins.cc
|
|
| | | UnsafeCell is the keystone for building interior mutability types in Rust, such as Cell, RefCell, RwLock and Mutex. In this article we'll explore how it works and how it is used by those types. | ||