Skip to content

Commit 4ed94c1

Browse files
authored
Rollup merge of #132502 - Voultapher:document-core-features-in-config-toml-example, r=Mark-Simulacrum
Document possibility to set core features in example config.toml
2 parents 4c40119 + 668a3f3 commit 4ed94c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: config.example.toml

+4
Original file line numberDiff line numberDiff line change
@@ -773,13 +773,17 @@
773773
#validate-mir-opts = 3
774774

775775
# Configure `std` features used during bootstrap.
776+
#
776777
# Default features will be expanded in the following cases:
777778
# - If `rust.llvm-libunwind` or `target.llvm-libunwind` is enabled:
778779
# - "llvm-libunwind" will be added for in-tree LLVM builds.
779780
# - "system-llvm-libunwind" will be added for system LLVM builds.
780781
# - If `rust.backtrace` is enabled, "backtrace" will be added.
781782
# - If `rust.profiler` or `target.profiler` is enabled, "profiler" will be added.
782783
# - If building for a zkvm target, "compiler-builtins-mem" will be added.
784+
#
785+
# Since libstd also builds libcore and liballoc as dependencies and all their features are mirrored
786+
# as libstd features, this option can also be used to configure features such as optimize_for_size.
783787
#std-features = ["panic_unwind"]
784788

785789
# =============================================================================

0 commit comments

Comments
 (0)