跳到正文
DEV Community· elixpo·· 33 分鐘前AI 評分50

Rust CLI 工具 Crumb 如何從 ITP 進入 Debian testing

From ITP to Debian testing: how my Rust CLI got into Debian

AI 導讀

作者 elixpo 的 Rust 終端工具 Crumb 於 2026 年 10 月 28 日進入 Debian unstable,並於 10 月 31 日進入 testing;版本 1.4.1-1 於 11 月 10 日跟進。

正文

In October 2026, a small terminal tool I wrote, Crumb, became a Debian package. It
was accepted from the NEW queue into unstable on 28 October, reached testing on
31 October
, and a newer release (1.4.1) followed it into testing on 10 November.

I'm not a Debian Developer. I'm a contributor, which means every upload went through a
sponsor who reviewed and signed it. Getting there taught me more about how a Linux
distribution actually works than anything I'd read before, so this is the path as it
really happened, including the parts that went wrong.

What Crumb is

Crumb is a terminal tool written in Rust ("your terminal, with an agent that actually
gets the work done"), released under the MIT licence. Packaging it meant fitting a
modern Rust project into Debian's rules: every dependency available inside Debian,
every file with clear licensing, and every build reproducible in a clean environment.

Step 1: say you're doing it (the ITP)

Debian starts with a public note of intent. I filed an Intent to Package (ITP),
bug #1151280, on Debian's bug tracker. It tells everyone a package is coming and
prevents two people from doing the same work. The bug tracker is entirely email-driven,
which was my first culture shock.

Step 2: build it the way Debian builds it

Debian doesn't trust "works on my machine". I built Crumb with sbuild, inside a
clean chroot that has nothing installed except what the package declares. Then I ran
lintian (a static checker for packaging mistakes) and autopkgtest (tests run
against the installed package).

This is where real problems surfaced:

  • Crumb's own test suite failed inside the Debian build, because Debian removes Cargo.lock during the build and one test depended on it. I fixed it with a patch, and the fix went upstream too (crumb#233).
  • Salsa CI (Debian's GitLab CI) found that the tests needed a CA certificate store, so the package gained a ca-certificates dependency.
  • My first autopkgtest was only a superficial smoke test. After review from my sponsor, I replaced it with real tests.

The lesson: Debian's tooling isn't bureaucracy. It's a set of independent checks that
catch assumptions your own CI never questions.

Step 3: dependencies

A Rust package can only use crates already in Debian. Crumb needed rust-reedline
0.52.1 (verified: Crumb's Cargo.toml depends on reedline 0.52.1), and I now
co-maintain that package in Debian alongside kpcyrd.

Step 4: find a sponsor (the RFS)

Contributors can't upload directly. I uploaded the package to mentors.debian.net and
filed a Request for Sponsorship (RFS). Simon Quigley, a Debian Developer on the
Rust team, reviewed it, asked for changes, and sponsored the upload.

Having a sponsor is the best part of the process. Every review taught me a convention I
didn't know existed.

Step 5: the NEW queue

Brand-new packages land in NEW, where Debian's ftpmasters check, by hand, that
every file is properly licensed and redistributable. Crumb was accepted into unstable on
28 October 2026.

Step 6: britney and the road to testing

From unstable, packages migrate to testing automatically, once britney (Debian's
migration tool) is satisfied: enough days without release-critical bugs, builds on the
release architectures, and no regressions in packages that depend on it. Its "excuses"
page explains exactly what is blocking a package. Crumb reached testing on 31
October
, and version 1.4.1-1 followed on 10 November.

The lesson I wish I'd known on day one

While working on other Rust packages with the Debian Rust team, I learnt that when
upstream ships files without their source (pre-built or generated assets), you don't
just skip installing them. You repack the source so those files aren't in Debian's
source package at all (in Rust team packaging, via excludes in debcargo.toml).
Debian ships source you can actually rebuild, not just binaries you can trust.

What came next

Getting one package in opened the door to more: I now work with the Debian Rust
team
on release-critical bugs. One fix (blosc2) went the whole way from my bug report to an
upload and an upstream merge, another (rustls) shipped in another developer's upload
with my patch, and for a third (lopdf) upstream merged my fix while Debian shipped its own.

If you want your software in Debian

  1. Read the Debian New Maintainers' Guide, and package something small first.
  2. File the ITP early; it signals intent and attracts help.
  3. Build with sbuild from day one. Fix what lintian and autopkgtest tell you.
  4. Find your language team (for Rust, the Debian Rust team) and ask questions.
  5. Expect reviews; they're how you learn.

Links:

來源:DEV Community · dev.to