Skip navigation
Rust curl Clone Uses "Unsafe" 4,832 Times
0:00 / 8:24

Rust curl Clone Uses "Unsafe" 4,832 Times

The Lunduke Journal

@LundukeJournal40K followers

Visit on X
351 likesDownloadOriginal post

27,858 views

Rust curl Clone Uses "Unsafe" 4,832 Times But don't worry. It's Rust. So it's MeMoRY sAfE.

10 Comments

Comments from the original post on X (Twitter)

  • EWomer's profile picture

    @e_womer

    How long is it before its just fn unsafe run() { // The Entire Application Code Here } fn main() -> Result<(), &'static str> { run(); }

    8 likes

  • huanfuco's profile picture

    @huanfuco

    rust *vibe-coded* curl clone

    3 likes

  • The Great American Tourist 🇺🇸 🍊 🎮's profile picture

    @greatamctourist

    Unsafe context is specific for interop with other systems that require manual memory management. Rust is memory safe, but if you write the whole program in unsafe context, then of course it's not. That curl port sounds like a straight port without proper idomatic Rust.

    2 likes

  • Edward Thomas's profile picture

    @towianisci

    lol, what was the point of even using rust? Good job cultive rust enthusiast you solved nothing but hey it's written in Rust.

    1 like

  • Andy 🗽's profile picture

    @oaedoel

    430k LOC?!?!?! WTF. The original curl is only 20k or so. What is the Rust clone doing, such verbosity is not going to help ensure correctness.

    1 like

  • Dismantle Democracy's profile picture

    @DsmntlDemocracy

    They should have at least named in "rurl."

    1 like

  • What Happened's profile picture

    @wathapnd

    yeah memory safe code doesn't crash. that's why it's rust™.

  • Rahmat Ajuli's profile picture

    @radjiman2k16

    Eww

  • FM's profile picture

    @WorldShiner

    The `unsafe` keyword was present back in 2000s. C# had it. We all knew it wouldn't bring safety. When a frontend VM language overreached for bare metal, it was obviously on the route to be an unsafe-spammer.

  • str's profile picture

    @thetankaddict

    its so that companies steal code under MIT.