@@ -50,6 +50,7 @@ Every manifest file consists of the following sections:
50
50
* [ ` [badges] ` ] ( #the-badges-section ) --- Badges to display on a registry.
51
51
* [ ` [features] ` ] ( features.md ) --- Conditional compilation features.
52
52
* [ ` [lints] ` ] ( #the-lints-section ) --- Configure linters for this package.
53
+ * [ ` [hints] ` ] ( #the-hints-section ) --- Provide hints for compiling this package.
53
54
* [ ` [patch] ` ] ( overriding-dependencies.md#the-patch-section ) --- Override dependencies.
54
55
* [ ` [replace] ` ] ( overriding-dependencies.md#the-replace-section ) --- Override dependencies (deprecated).
55
56
* [ ` [profile] ` ] ( profiles.md ) --- Compiler settings and optimizations.
@@ -565,6 +566,26 @@ As for dependents, Cargo suppresses lints from non-path dependencies with featur
565
566
566
567
> ** MSRV:** Respected as of 1.74
567
568
569
+ ## The ` [hints] ` section
570
+
571
+ The ` [hints] ` section allows specifying hints for compiling this package. Cargo
572
+ will respect these hints by default when compiling this package, though the
573
+ top-level package being built can override these values through the ` [profile] `
574
+ mechanism. Hints are, by design, always safe for Cargo to ignore; if Cargo
575
+ encounters a hint it doesn't understand, or a hint it understands but with a
576
+ value it doesn't understand, it will warn, but not error. As a result,
577
+ specifying hints in a crate does not impact the MSRV of the crate.
578
+
579
+ Individual hints may have an associated unstable feature gate that you need to
580
+ pass in order to apply the configuration they specify, but if you don't specify
581
+ that unstable feature gate, you will again get only a warning, not an error.
582
+
583
+ There are no stable hints at this time. See the [ hint-mostly-unused
584
+ documentation] ( unstable.md#profile-hint-mostly-unused-option ) for information
585
+ on an unstable hint.
586
+
587
+ > ** MSRV:** Respected as of 1.90.
588
+
568
589
## The ` [badges] ` section
569
590
570
591
The ` [badges] ` section is for specifying status badges that can be displayed
0 commit comments