From 2221e1fa935fef1fbc8a39a478824f0b163e6399 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 7 Nov 2021 23:52:11 +0100 Subject: Replace rustflags with build.rs extra-link-args. Rustflags apply to ALL the crates in the graph, while we only need them for the toplevel crate which is the only one getting linked. Rustflags are not equal for all crates, this caused cargo to re-build the same dependency crate multiple times uselessly. After this change, deps are reused more, making builds faster. Note that this only applies when sharing the target/ dir for multiple crates in the repo which is not the default. --- examples/std/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/std/Cargo.toml') diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index b494cd3be..002d0487a 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml @@ -11,7 +11,7 @@ smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b async-io = "1.6.0" env_logger = "0.9.0" -futures = { version = "0.3.17", default-features = false, features = ["async-await"] } +futures = { version = "0.3.17" } log = "0.4.14" nix = "0.22.1" libc = "0.2.101" -- cgit