Flint is an experimental Rust build tool designed to run familiar Cargo commands while compiling through a backend that does not use LLVM. It leaves a project’s manifest, lockfile, and workspace unchanged, and stores compiled crates in a content-addressed cache shared across checkouts on the same machine. Its commands cover building, checking, testing, and running code. The project’s central claim is that this approach can substantially reduce release-build times, especially when making small edits, while retaining incremental compilation from the initial build.
Benchmarks on a 16-vCPU Google Cloud machine used real repositories and empty caches for each build mode. On a 30-crate workspace, Flint’s release cold build took 27.8 seconds, compared with Cargo’s 59.4 seconds using the project’s thin-LTO profile; an edit took 1.45 seconds versus 12.5 seconds. A second checkout reused the shared cache, and all 133 tests passed. However, Cargo remains faster for the measured debug edit loop: 0.99 seconds versus Flint’s 2.06 seconds with mold. Flint also cannot yet link a project using aws-lc-rs because a bundled static C library’s symbol is missing, though routing static-native-library crates through the standard backend is underway. The code is available under either the Apache-2.0 or MIT license.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.