Rustのビルドを最大2倍高速化する「Headstart」、依存クレートの型チェック完了を待たずにコンパイル開始
Emitting metadata early makes building/checking Rust up to twice as fast
Rustのコンパイルでは、依存クレートの関数本体までチェックが終わるのを待ってから次のクレートが動き出す。Headstartはrustcに早期メタデータを書かせ、cargoがそれを使って依存クレートを先に開始する。rust-analyzerやzedなど13の実プロジェクトで、cargo checkが最大54%、cargo buildが最大42%高速化した。エラー処理や診断は従来と変わらない。
Headstart makes rustc write an early metadata file as soon as the interface is checked, and makes cargo start dependents on it.