惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
V
V2EX
博客园 - 司徒正美
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
Last Week in AI
Last Week in AI
雷峰网
雷峰网
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
爱范儿
爱范儿
博客园 - 聂微东
量子位
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News

Rust Blog

Security Advisory for Cargo (CVE-2026-5223) | Rust Blog Security Advisory for Cargo (CVE-2026-5222) | Rust Blog Project goals update — April 2026 (end of 2025H2) | Rust Blog Rust is participating in Outreachy | Rust Blog Raising the baseline for the `nvptx64-nvidia-cuda` target | Rust Blog Announcing Google Summer of Code 2026 selected projects | Rust Blog Announcing Rust 1.95.0 | Rust Blog docs.rs: building fewer targets by default | Rust Blog Changes to WebAssembly targets and handling undefined symbols | Rust Blog Announcing Rust 1.94.1 | Rust Blog Security advisory for Cargo | Rust Blog What we heard about Rust's challenges | Rust Blog Call for Testing: Build Dir Layout v2 | Rust Blog Announcing rustup 1.29.0 | Rust Blog Announcing Rust 1.94.0 | Rust Blog 2025 State of Rust Survey Results | Rust Blog Rust debugging survey 2026 | Rust Blog Update on the October 15, 2018 incident on crates.io Announcing Rust 1.29.2 Announcing Rust 1.29 Announcing Rust 1.28 What is Rust 2018? Announcing Rust 1.27.2 Announcing Rust 1.27.1 Security Advisory for rustdoc Announcing Rust 1.27 Announcing Rust 1.26.2 Announcing Rust 1.26.1 Rust turns three Announcing Rust 1.26
Changes to x.py defaults | Inside Rust Blog
Jynn Nelson on behalf of the compiler team · 2020-08-30 · via Rust Blog

Recently, the defaults for x.py, the tool used to bootstrap the Rust compiler from source, changed. If you regularly contribute to Rust, this might affect your workflow.

What changes were made?

  • The default stage is now dependent on the subcommand:

    • dist: stage 2
    • build: stage 1
    • test: stage 1
    • doc: stage 0
  • stage 1 rustc artifacts are no longer built by x.py build --stage 1. To get the old behavior back, use x.py build --stage 1 src/rustc. The new behavior for build --stage 1 builds everything except rustc, which includes the standard library, rustdoc, and various other tools (if the tools are enabled).

  • debuginfo now defaults to 1 when debug = true. Previously, the default was 2.

Why were the changes made?

Previously, x.py build would build rustc twice:

  1. build/stage0-std
  2. build/stage0-rustc
  3. build/stage1-std
  4. build/stage1-rustc

Normally, contributors only want to build the compiler once, which lets them test their changes quickly. After this change, that's now the default:

  1. build/stage0-std
  2. build/stage0-rustc
  3. build/stage1-std

debuginfo = 2 generates several gigabytes of debug information, making the previous default settings for debug = true very painful.

For a detailed rationale of the changes, as well as more information about the alternatives considered, see