Login
You're viewing the code4lib.social public feed.
  • Oct 21, 2026, 11:51 PM

    This next Sunday will be exactly 10 years since the first Rust commit to librsvg, which happened on 2016/Oct/25.

    It had approximately 22.5K lines of C code, with a test suite that didn't work. We did the port to Rust in 5-6 years: the main library in 3 years, and the test suite and rsvg-convert in the rest of the time.

    Now the code is 43K lines of Rust, with extensive tests, at 93% test coverage.

    It has had 1 CVE due to memory unsafety, and 2 CVEs due to logic errors since then.

    💬 1🔄 1⭐ 0

Replies

  • Oct 21, 2026, 11:58 PM

    The high watermark of "number of people working on Rustification" at any point in time must be around 4 or 5, all working casually. Most of the time, 1 or 2 people.

    There was one major internship by @YaLTeR that ported a mountain of code, all the SVG filters. Other internships took care of new, individual features, not part of the port.

    We didn't use LLMs; all the code was refactored, ported, and tests written by hand.

    My point is that you can do this, too, for other low-level infrastructure.

    💬 0🔄 5⭐ 13