@@ -157,9 +157,30 @@ your crate, with and without this hint set, using nightly Cargo:
157
157
noticeable performance improvement, consider setting it in your published
158
158
crate.
159
159
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
+
160
171
Please report any performance improvements, or unexpected performance issues,
161
172
or * especially* any failures you observe, to the [ tracking issue for
162
173
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
+
163
184
We'll take this feedback into account to fix any issues with either the rustc
164
185
compiler feature or the Cargo features, and to evaluate when those features
165
186
have seen enough testing to be ready to stabilize.
0 commit comments