aboutsummaryrefslogtreecommitdiff
path: root/examples/std
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-11-07 23:52:11 +0100
committerDario Nieuwenhuis <[email protected]>2021-11-07 23:52:11 +0100
commit2221e1fa935fef1fbc8a39a478824f0b163e6399 (patch)
treee411210300b63cf3bec2e32e2fb0f2d270129d84 /examples/std
parent90095adedf370ddcda6d364dbb5e7f3a0a9b5895 (diff)
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.
Diffstat (limited to 'examples/std')
-rw-r--r--examples/std/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
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
11 11
12async-io = "1.6.0" 12async-io = "1.6.0"
13env_logger = "0.9.0" 13env_logger = "0.9.0"
14futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 14futures = { version = "0.3.17" }
15log = "0.4.14" 15log = "0.4.14"
16nix = "0.22.1" 16nix = "0.22.1"
17libc = "0.2.101" 17libc = "0.2.101"