<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: elixpo</title>
    <description>The latest articles on DEV Community by elixpo (@elixpo).</description>
    <link>https://dev.to/elixpo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1464518%2F2fba9bb2-167e-4168-b698-91f25c5b3bfb.jpeg</url>
      <title>DEV Community: elixpo</title>
      <link>https://dev.to/elixpo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elixpo"/>
    <language>en</language>
    <item>
      <title>From ITP to Debian testing: how my Rust CLI got into Debian</title>
      <dc:creator>elixpo</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:21:47 +0000</pubDate>
      <link>https://dev.to/elixpo/from-itp-to-debian-testing-how-my-rust-cli-got-into-debian-47bp</link>
      <guid>https://dev.to/elixpo/from-itp-to-debian-testing-how-my-rust-cli-got-into-debian-47bp</guid>
      <description>&lt;p&gt;In October 2026, a small terminal tool I wrote, &lt;strong&gt;Crumb&lt;/strong&gt;, became a Debian package. It&lt;br&gt;
was accepted from the NEW queue into &lt;strong&gt;unstable on 28 October&lt;/strong&gt;, reached &lt;strong&gt;testing on&lt;br&gt;
31 October&lt;/strong&gt;, and a newer release (1.4.1) followed it into testing on 10 November.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  What Crumb is
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  Step 1: say you're doing it (the ITP)
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  Step 2: build it the way Debian builds it
&lt;/h3&gt;

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

&lt;p&gt;This is where real problems surfaced:&lt;/p&gt;

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

&lt;p&gt;The lesson: Debian's tooling isn't bureaucracy. It's a set of independent checks that&lt;br&gt;
catch assumptions your own CI never questions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: dependencies
&lt;/h3&gt;

&lt;p&gt;A Rust package can only use crates already in Debian. Crumb needed &lt;strong&gt;rust-reedline&lt;/strong&gt;&lt;br&gt;
0.52.1, and I now&lt;br&gt;
co-maintain that package in Debian alongside kpcyrd.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: find a sponsor (the RFS)
&lt;/h3&gt;

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

&lt;p&gt;Having a sponsor is the best part of the process. Every review taught me a convention I&lt;br&gt;
didn't know existed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: the NEW queue
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  Step 6: britney and the road to testing
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  The lesson I wish I'd known on day one
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  What came next
&lt;/h3&gt;

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

&lt;h3&gt;
  
  
  If you want your software in Debian
&lt;/h3&gt;

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

&lt;p&gt;Links:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Crumb in Debian: &lt;a href="https://tracker.debian.org/pkg/crumb" rel="noopener noreferrer"&gt;https://tracker.debian.org/pkg/crumb&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The ITP: &lt;a href="https://bugs.debian.org/1151280" rel="noopener noreferrer"&gt;https://bugs.debian.org/1151280&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Crumb: &lt;a href="https://github.com/elixpo/crumb.elixpo" rel="noopener noreferrer"&gt;https://github.com/elixpo/crumb.elixpo&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>debian</category>
      <category>rust</category>
      <category>opensource</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
