Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4ed94c1

Browse filesBrowse files
authored
Rollup merge of rust-lang#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
Copy full SHA for 4ed94c1

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎config.example.toml

Copy file name to clipboardExpand all lines: config.example.toml
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.