Skip to content

Commit d22a9c4

Browse files
Merge #230
230: Updated documentation on profile-overrides r=therealprof a=irwineffect Profile-overrides has now been stabilized (rust-lang/cargo#7591), so the book has been updated to point to the stable documentation. During stabilization, syntax was changed to use "package" instead of "overrides" (rust-lang/cargo#7504), documentation updated to match. Co-authored-by: James Irwin <irwineffect@gmail.com>
2 parents 96e40ed + eeb96b8 commit d22a9c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unsorted/speed-vs-size.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ override the optimization level of dependencies. You can use that feature to
4242
optimize all dependencies for size while keeping the top crate unoptimized and
4343
debugger friendly.
4444

45-
[`profile-overrides`]: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#overrides
45+
[`profile-overrides`]: https://doc.rust-lang.org/cargo/reference/profiles.html#overrides
4646

4747
Here's an example:
4848

@@ -52,7 +52,7 @@ Here's an example:
5252
name = "app"
5353
# ..
5454

55-
[profile.dev.overrides."*"] # +
55+
[profile.dev.package."*"] # +
5656
opt-level = "z" # +
5757
```
5858

@@ -93,11 +93,11 @@ particular dependency from being optimized. See example below:
9393
# ..
9494

9595
# don't optimize the `cortex-m-rt` crate
96-
[profile.dev.overrides.cortex-m-rt] # +
96+
[profile.dev.package.cortex-m-rt] # +
9797
opt-level = 0 # +
9898

9999
# but do optimize all the other dependencies
100-
[profile.dev.overrides."*"]
100+
[profile.dev.package."*"]
101101
codegen-units = 1 # better optimizations
102102
opt-level = "z"
103103
```

0 commit comments

Comments
 (0)