⬢github Rust · 12 ★ +9 since we first saw it · pushed 1 d ago
PowderworksCode/headstart
Start dependent crates before their dependencies finish type-checking
Headstart is a set of experimental patches to Rust's compiler and cargo that let dependent crates start compiling before their dependencies fully finish type-checking. rustc emits an early metadata file once a crate's interface is checked, and cargo starts downstream crates on it, overlapping body-checking with dependent compilation. Measured clean builds of real projects get up to 54% faster on check and 42% on build.
Why now: It was discussed on Hacker News alongside the claim that emitting metadata early can make building/checking Rust up to twice as fast, and the patches are being positioned as candidates for upstreaming to rustc and cargo.
Who it is for: Rust developers and compiler/cargo contributors who care about cutting build and check times on large multi-crate projects.
Stars over our 16 snapshots: 3 to 12, since 4 h ago.
Where people talked about it
API: https://socialmediatrends-api.osmike.com/v1/repos/PowderworksCode/headstart