Skip to content

Commit b5846cb

Browse files
committed
Add more details to call for testing
1 parent 003dedf commit b5846cb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

content/inside-rust/call-for-testing-hint-mostly-unused.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,30 @@ your crate, with and without this hint set, using nightly Cargo:
157157
noticeable performance improvement, consider setting it in your published
158158
crate.
159159

160+
If you're building atop a crate that you only use a small fraction of, you can
161+
try setting the profile option in your own crate:
162+
163+
```toml
164+
[profile.dev.package.huge-mostly-unused-dependency]
165+
hint-mostly-unused = true
166+
167+
[profile.release.package.huge-mostly-unused-dependency]
168+
hint-mostly-unused = true
169+
```
170+
160171
Please report any performance improvements, or unexpected performance issues,
161172
or *especially* any failures you observe, to the [tracking issue for
162173
profile-hint-mostly-unused](https://github.com/rust-lang/cargo/issues/15644).
174+
When reporting, please tell us:
175+
- What hints or profile settings you added
176+
- What crates you added them to
177+
- What top-level crate you're building
178+
- What features you set when building
179+
- What build profile you're using (e.g. the default dev profile, or the release
180+
profile)
181+
- Whether you did a clean build or an incremental rebuild
182+
- What performance numbers you got with and without the option you added
183+
163184
We'll take this feedback into account to fix any issues with either the rustc
164185
compiler feature or the Cargo features, and to evaluate when those features
165186
have seen enough testing to be ready to stabilize.

0 commit comments

Comments
 (0)