• interdimensionalmeme
    link
    fedilink
    arrow-up
    8
    arrow-down
    25
    ·
    7 months ago

    How else is it going to fit inside of 25kb? Can they even make rust executables under 1GB?

      • interdimensionalmeme
        link
        fedilink
        arrow-up
        8
        arrow-down
        3
        ·
        7 months ago

        Oh wow, a text based file manager is that big ? That’s half of my openwrt router’s memory

        • Azzk1kr@feddit.nl
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          1
          ·
          7 months ago

          Because it’s a statically compiled binary, it tends to grow the size of the binary. Increases portability though.

    • thingsiplay@beehaw.org
      link
      fedilink
      arrow-up
      9
      arrow-down
      2
      ·
      7 months ago

      Did you mean 1MB? With correct settings, you get under 1MB Rust binaries and with even more compression using upx it gets to 300KB, probably less for much simpler applications. Rust applications aren’t that big of a deal as people make it to be; within reasons off course.

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        4
        ·
        7 months ago

        The one issue I have with Rust apps is how much memory they need to compile (depending on the app ofc). I could not install Pika Backup from AUR on a laptop with 4 GB of RAM for instance because the compilation would run out of memory. It’s one case where I was glad flatpak is an option.