Skip to content

Commit 668a3f3

Browse files
committed
Document possibility to set core features in example config.toml
1 parent 145f9cf commit 668a3f3

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
@@ -772,13 +772,17 @@
772772
#validate-mir-opts = 3
773773

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

784788
# =============================================================================

0 commit comments

Comments
 (0)