Skip to content

Commit

Permalink
Merge #229
Browse files Browse the repository at this point in the history
229: Update information on Cargo `profile-overrides` r=adamgreig a=tomaszrozanski

Because `profile-overrides` feature is now stabilized, I removed unnecesary warnings and pieces of code.

Co-authored-by: Tomasz Różański <tomasz.rozanski@fastmail.com>
  • Loading branch information
bors[bot] and tomasz-rozanski committed Mar 2, 2020
2 parents b81ffb7 + 5df288c commit 96e40ed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/unsorted/speed-vs-size.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
# ..
Expand Down

0 comments on commit 96e40ed

Please sign in to comment.