mirror of https://github.com/linkerd/linkerd2.git
`cargo fetch` doesn't consider the target platform and downloads all crates needed to build for any target. Stop using `cargo fetch` and instead use the implicit fetch done by `cargo build`, which *does* consider the target platform. This change results in 12 (soon 15) fewer crates downloaded. This is a non-trivial savings in build time for a full rebuild since cargo downloads crates in parallel. ```diff - Downloading bitflags v1.0.1 - Downloading fuchsia-zircon v0.3.3 - Downloading fuchsia-zircon-sys v0.3.3 - Downloading miow v0.2.1 - Downloading redox_syscall v0.1.37 - Downloading redox_termios v0.1.1 - Downloading termion v1.5.1 - Downloading winapi v0.3.4 - Downloading winapi-i686-pc-windows-gnu v0.4.0 - Downloading winapi-x86_64-pc-windows-gnu v0.4.0 - Downloading wincolor v0.1.6 - Downloading ws2_32-sys v0.2.1 ``` I verified that no downloads are done during an incremental build. Signed-off-by: Brian Smith <brian@briansmith.org> |
||
---|---|---|
.. | ||
controller-grpc | ||
convert | ||
futures-mpsc-lossy | ||
router | ||
src | ||
tests | ||
Cargo.toml | ||
Dockerfile |