NewsCrawler.org

curl maintainer on two recent Rust rewrites of curl

The author, who works on the curl project, writes that people have long asked about a Rust rewrite of curl. He mentions urlx[1], which appeared a few months ago and claims to be a memory-safe[2], from-scratch reimplementation of curl and libcurl. In November, another project called "curl, rewritten in Rust" appeared under the same name, and its authors claim to have spent 8,600 USD on it.

The author argues that writing the code is not the hard part, since AI agents had years of curl code to learn from, and curl is well documented, used through its API by hundreds of open source applications, and covered by thousands of tests. He counted that the agents converted 185,000 lines of C into 340,000 lines of Rust in a little over three weeks. In the same period the real curl project merged over 300 commits, including a little over 200 bugfixes and a few vulnerability fixes.

Of the 81 vulnerabilities confirmed in curl so far in 2026, 14 (17.3%) came from mistakes that a memory-safe language such as Rust would most likely have prevented, so a Rust version would still have had 67 of them. The author does not believe in rewrites into any language. He says curl's strength lies in its community, its development speed and decades of ABI[3] and API stability. He wishes the rewrite authors good luck and says he is amused, a little puzzled and fascinated.

Read the original daniel.haxx.seDiscussion

Discussion

Commenters mostly dispute the vulnerability argument and the value of the rewrite. Some say Rust's rich type system and its ability to compile anywhere bring benefits beyond memory safety, while others note that Rust is less portable than C and that rewrites could drop support for many platforms. One commenter doubts the 8,600 USD figure, suggesting such work is paid through subscriptions rather than API pricing, and another finds the growth from 185,000 to 340,000 lines of code troubling.

Sources

Published: First seen: Читать по-русски

Open as a page