• KindaABigDyl
    link
    fedilink
    arrow-up
    14
    ·
    2 days ago

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

    • RustyNova@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      2 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

  • Ismay
    link
    fedilink
    arrow-up
    10
    ·
    2 days ago

    Go: you’re not downloading the sources ?

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

    This meme must be old as Java 9 added jmods

    • wispy_jsp@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      2 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
        1
        arrow-down
        1
        ·
        2 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