Rust 빌드, 의존성 타입 검사 기다리지 않고 최대 2배 빨라진다
Emitting metadata early makes building/checking Rust up to twice as fast
Rust 컴파일러와 Cargo를 수정해 의존성 크레이트의 타입 검사가 끝나기 전에 미리 메타데이터를 생성하고, 이를 바탕으로 의존 크레이트가 먼저 컴파일을 시작하도록 하는 Headstart 프로젝트가 공개됐다. rust-analyzer, zed, bevy 등 13개 실제 프로젝트에서 cargo check가 최대 54%, cargo build가 최대 42% 빨라졌으며, 4코어 환경에서도 유의미한 속도 향상을 보였다. 에러 진단과 종료 상태는 기존과 동일하게 유지된다.
Headstart makes rustc write an early metadata file as soon as the interface is checked, and makes cargo start dependents on it.