summary refs log tree commit diff
path: root/config.example.toml
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-25 07:01:38 +0100
committerGitHub <noreply@github.com>2024-11-25 07:01:38 +0100
commit4ed94c149f7a57a909cd1401ef60cdea644e3c98 (patch)
treea085799e187241205656fe06c84ee6bc64a91683 /config.example.toml
parent4c40119dc4840a1a8015e1f73219ea7ae92b96fe (diff)
parent668a3f30afa4f574ff7e6819a398143fedb5583b (diff)
downloadrust-4ed94c149f7a57a909cd1401ef60cdea644e3c98.tar.gz
rust-4ed94c149f7a57a909cd1401ef60cdea644e3c98.zip
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
Diffstat (limited to 'config.example.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 6dd0088b067..9ec0d77e79b 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -773,6 +773,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.
@@ -780,6 +781,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"]
 
 # =============================================================================