• KindaABigDyl
    link
    fedilink
    arrow-up
    16
    ·
    1 month ago

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

    • RustyNova@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 month 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
    ·
    1 month ago

    This meme must be old as Java 9 added jmods

      • Scoopta
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        -_-…8 needs to die already. Most of my projects heavily depend on modern features, I even have one that straight up requires JPMS

    • wispy_jsp@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 month 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
        ·
        1 month 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
    ·
    1 month ago

    Go: you’re not downloading the sources ?