From: bors Date: Mon, 5 Feb 2018 21:22:16 +0000 (+0000) Subject: Auto merge of #4976 - mbrubeck:doc-check, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=16ffc053a8839ec3ef4325991900d33ec3f1521f;p=cargo.git Auto merge of #4976 - mbrubeck:doc-check, r=alexcrichton cargo doc: Generate rmeta files for dependencies instead of compiling rlibs This makes `cargo doc` require only metadata (`.rmeta` files) instead of compiled libraries (`.rlib` files) for dependencies. This makes `cargo doc` faster in cases where rlibs are not already built and/or metadata is already available. Unfortunately, this is not a win for every workflow. In the case where the user has already compiled but has not generated metadata, it makes `cargo doc` do extra work. This is probably a common case, though tools like RLS and `cargo check` mean that many developers *will* have up-to-date metadata available. It would become an unequivocal win if `cargo build` and `cargo check` re-used shared metadata (#3501). For now, starting from a clean working directory, the following sequences of commands will become: * `cargo doc`: faster * `cargo build; cargo doc`: slower * `cargo check; cargo doc`: faster * `cargo build --release; cargo doc`: faster * `cargo check; cargo build; cargo doc`: no change --- 16ffc053a8839ec3ef4325991900d33ec3f1521f