• KindaABigDyl
    link
    fedilink
    arrow-up
    16
    ·
    30 days ago

    What packaging types are there for Rust? Isn’t everything just source-based through cargo?

    • RustyNova@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      30 days ago

      I think they are referring to crates vs binaries vs cargo binaries.

      Crates are your libraries, not meant to be standalone, binaries are your .exe, cargo binaries are meant to be compiled by cargo on your machine and run through cargo, ex: cargo sqlx

      They might also refer test binaries and example binaries which are two executables that only compile the tesrs and the examples to make sure they work, but apart from that idk

  • Scoopta
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    30 days ago

    This meme must be old as Java 9 added jmods

    • wispy_jsp@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      30 days ago

      And there’s also WARs for servelets, uberjars, various means of bundling for exes, native compilation via Graal. Overall quite the ignorant meme.

      • Scoopta
        link
        fedilink
        arrow-up
        2
        arrow-down
        2
        ·
        29 days ago

        How did I forget WARs…I literally work with Jakarta quite often including for work lol. Bundling exes is a cheap trick, just a JAR with an exe header, can usually even be run like a jar so not sure I count that but yeah

  • Ismay
    link
    fedilink
    arrow-up
    12
    ·
    30 days ago

    Go: you’re not downloading the sources ?