Rust Coreutils 0.13 Released

Rust Coreutils 0.13 Released

Rust coreutils 0.13 was released on November 20. The uutils project reimplements GNU coreutils in Rust, and it is the package behind Ubuntu’s switch away from the GNU versions.

Where this stands

The milestone was reaching 100% of the GNU test suite in Ubuntu 26.10, which we covered in September. That is a real achievement and it is worth being precise about what it means.

Passing the GNU test suite means passing the tests GNU wrote. It does not mean behavioural identity with GNU coreutils, because the test suite does not encode every behaviour that thirty years of scripts have come to depend on.

The gap between those two things is where the remaining risk lives, and it is the gap that only real-world use closes. Which is precisely why shipping it on an interim release rather than straight into an LTS was the right sequencing.

The actual question now

Ubuntu 27.04 development has opened, with 27.10 after it and 28.04 LTS at the end.

An LTS is a five-year commitment. For ls, cp, mv, rm and dd, that is a commitment to the behaviour of the tools every script on the system calls. The bar for an LTS is considerably higher than the bar for a nine-month interim release, and two interim cycles is roughly the right amount of exposure to clear it.

What would be reasonable to see before then:

  • Edge cases found by real scripts rather than by tests
  • The error message and exit code surface matching closely enough that scripts checking them still work
  • Performance parity on the operations that matter, which has historically been mixed rather than uniformly better or worse

Why do this at all

The case for the rewrite, stated fairly:

  • Memory safety in tools that run constantly, frequently as root, frequently on untrusted input
  • A permissive licence, MIT rather than GPL, which matters to some downstream users and is itself a contested point
  • A smaller, more approachable codebase for new contributors

The case against, also fairly:

  • GNU coreutils works, has worked for decades, and the bugs have mostly been found
  • Behavioural compatibility is the entire job and it is harder than reimplementation
  • Memory safety bugs in ls are not a significant part of anyone’s real threat model

Both sets are legitimate. The reason it is happening is that Canonical decided to do it, and the reason it is interesting is that it is a live test of whether a rewrite of this kind can be completed rather than abandoned at 95%.

Trying it

# Ubuntu 26.10 and later
dpkg -l rust-coreutils 2>/dev/null
ls --version | head -1

# anywhere, without replacing anything
cargo install coreutils
# installed as uu_ls, uu_cp and so on

# or from a package manager
sudo pacman -S uutils-coreutils

Installing it alongside GNU rather than in place of it is the sensible way to look at it. Our ls guide, cp guide and dd guide describe GNU behaviour, which remains what the documentation of the wider world assumes.

If you maintain scripts that will run on Ubuntu 28.04, testing them against uutils now is cheap and the results are more useful than the test suite percentage. Our bash error handling guide covers the exit code and stderr surface that is most likely to differ.

Background reading

Explainers for the concepts behind this story.