I thought I’ll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I’ll try my best to answer any questions here, but I hope others in the community will contribute too!

  • PlexSheep
    link
    fedilink
    arrow-up
    4
    ·
    7 months ago

    Absolutely! That’s called static linking, as in the library is included in the executable. Most Rust programs are compiled that way.

    • sag@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      Yea, That’s why I am learning Rust but I didn’t know it called Static Linking I think it just how Rust works LMAO. And Thanks again

      • PlexSheep
        link
        fedilink
        arrow-up
        1
        ·
        7 months ago

        No problem. Good luck with your rust journey, it’s imo the best programming language.

    • jack@monero.town
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      7 months ago

      Doesn’t that mean that you have a lot of duplicate libraries when using Rust programs, even ones with the same version? That seems very inefficient

      • PlexSheep
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        7 months ago

        It’s true that boundaries get inflated as a result, but with today’s hard drives it’s not really a problem.