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 31 · Jul 27 – Aug 2, 2026

This Week in Rust 662 – crate of the week: cargo‑efmt

Nice to knowtooling

What changed
cargo‑efmt is introduced as a drop‑in replacement for cargo fmt that supports .editorconfig files.
Production impact
The source does not say.
Try it
Add cargo‑efmt to a project and run cargo efmt to format code according to an .editorconfig.
Source
this-week-in-rust.org/blog/2026/07/29/this-week-in-rust-662/

Understand it, then run it

cargo-efmt is a new crate that can replace cargo fmt. It adds support for .editorconfig files, which let you keep formatting rules in a project‑wide config. If you run cargo efmt it will format your code the same way cargo fmt does, but it will also read the .editorconfig file and apply those rules. No other changes to Rust itself are involved.

Run it now

Todayrust
// This program demonstrates the announcement of cargo‑efmt.
// It simply prints the key fact about the crate.
// No external crates are used, so it compiles on Rust 1.98.1 (edition 2024).

fn main() {
    println!("cargo‑efmt is a drop‑in replacement for cargo fmt that supports .editorconfig files.");
}

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

cargo‑efmt is a drop‑in replacement for cargo fmt that supports .editorconfig files.

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