Login
You're viewing the ruby.social public feed.
  • Mar 5, 2026, 10:38 PM

    TIL that

    cargo —locked {build,test}

    works like

    cargo {build,test} —locked

    But

    cargo —locked clippy

    works like:

    cargo clippy

    That is, the `—locked` is ignored, but the command still “works.” This is the case for any command not built into Cargo, it seems. So make sure you put that flag in the right place.

    (TIL, but I’m pretty sure I’ve learned it multiple times.)

    💬 0🔄 1⭐ 2