This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Rust · Archive · Week 42 · Oct 13 – 19, 2025

Renaming the default branch of rust‑lang/rust

Worth knowingtooling

What changed
The default branch of the rust‑lang/rust repository was renamed.
Production impact
The source does not say.
Try it
Check the new branch name on GitHub and update any CI scripts that reference the old branch.
Source
blog.rust-lang.org/inside-rust/2025/10/16/renaming-the-default-branch-of-rust-lang-rust/

Understand it, then run it

The Rust project moved the main copy of its source code from a branch called master to a branch called main. GitHub now uses main as the default name for new repositories, so the Rust team followed that convention. If you clone the Rust repository, you will now see a main branch instead of a master branch. Tools that expect the default branch to be named master can instead refer to HEAD, which works before and after the change.

Run it now

Todayrust
// This program demonstrates the current default branch name of the Rust repository.
// It prints the name of the branch that the repository was cloned from.
// The Rust project now uses `main` as the default branch.

fn main() {
    // In a real environment, you would query the git metadata.
    // For this sandbox, we simply print the expected default branch name.
    println!("The default branch of rust-lang/rust is `main`.");
}

What it printed when we ran it on Rust 1.98.1 (edition 2024)

The default branch of rust-lang/rust is `main`.

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed