From 5df288c7742aa32f756f4218a19ea610102091a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20R=C3=B3=C5=BCa=C5=84ski?= Date: Mon, 2 Mar 2020 16:34:50 +0100 Subject: [PATCH] Update information on Cargo `profile-overrides` Because `profile-overrides` feature is now stabilized, I removed unnecesary warnings and pieces of code. --- src/unsorted/speed-vs-size.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/unsorted/speed-vs-size.md b/src/unsorted/speed-vs-size.md index 3a42fdad..95d0e2f9 100644 --- a/src/unsorted/speed-vs-size.md +++ b/src/unsorted/speed-vs-size.md @@ -37,22 +37,17 @@ Can we have smaller, debugger friendly binaries? Yes, there's a trick. ### Optimizing dependencies -> **WARNING** This section uses an unstable feature and it was last tested on -> 2018-09-18. Things may have changed since then! - -On nightly, there's a Cargo feature named [`profile-overrides`] that lets you +There's a Cargo feature named [`profile-overrides`] that lets you override the optimization level of dependencies. You can use that feature to optimize all dependencies for size while keeping the top crate unoptimized and debugger friendly. -[`profile-overrides`]: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-overrides +[`profile-overrides`]: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#overrides Here's an example: ``` toml # Cargo.toml -cargo-features = ["profile-overrides"] # + - [package] name = "app" # ..