• KindaABigDyl
    link
    fedilink
    arrow-up
    16
    ·
    2 months ago

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

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

    This meme must be old as Java 9 added jmods

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

      • Scoopta
        link
        fedilink
        arrow-up
        1
        ·
        7 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

  • Ismay
    link
    fedilink
    arrow-up
    12
    ·
    2 months ago

    Go: you’re not downloading the sources ?