• qaz@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    7 days ago

    I usually pick Rust for CLI tools because:

    1. It’s statically compiled and isn’t dependent on system binaries and won’t break if there if the system has the wrong version like C/C++, allowing you to distribute it as a single binary without any other installation steps
    2. Still produces fairly small binaries unlike languages like Java or C# (because of the VM)
    3. Is a modern language with a good build system (It’s like night and day compared to CMake)
    4. And I just like how the language works (errors as values etc.)