about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Bergdoll <lukas.bergdoll@gmail.com>2024-11-02 10:53:26 +0100
committerLukas Bergdoll <lukas.bergdoll@gmail.com>2024-11-02 10:53:26 +0100
commit668a3f30afa4f574ff7e6819a398143fedb5583b (patch)
treed8fcde025eddbb3985af332e5291005e94a7e373
parent145f9cf95de1fbde3fa11e98461310e0373253e6 (diff)
downloadrust-668a3f30afa4f574ff7e6819a398143fedb5583b.tar.gz
rust-668a3f30afa4f574ff7e6819a398143fedb5583b.zip
Document possibility to set core features in example config.toml
-rw-r--r--config.example.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml
index 9072a83551a..5e13db3c327 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -772,6 +772,7 @@
 #validate-mir-opts = 3
 
 # Configure `std` features used during bootstrap.
+#
 # Default features will be expanded in the following cases:
 #  - If `rust.llvm-libunwind` or `target.llvm-libunwind` is enabled:
 #    - "llvm-libunwind" will be added for in-tree LLVM builds.
@@ -779,6 +780,9 @@
 #  - If `rust.backtrace` is enabled, "backtrace" will be added.
 #  - If `rust.profiler` or `target.profiler` is enabled, "profiler" will be added.
 #  - If building for a zkvm target, "compiler-builtins-mem" will be added.
+#
+# Since libstd also builds libcore and liballoc as dependencies and all their features are mirrored
+# as libstd features, this option can also be used to configure features such as optimize_for_size.
 #std-features = ["panic_unwind"]
 
 # =============================================================================