I threw together a rust client for lemmy to play a similar role to the lemmy-js-client.

    • CannotSleep420OP
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      9 months ago

      Its small size is due to having few dependencies and not having a lot of code itself. It also helps that I use different dependencies depending on whether or not it is compiled to target WASM. The library I use for WASM, gloo-net, is a thin WASM wrapper around the browser’s fetch API, which should keep the binary smaller when sent to the browser.

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    7
    ·
    10 months ago

    I’m quite surprised that doesn’t exist given the devs are working on replacing the inferno JS UI with Leptos with WASM.

    • CannotSleep420OP
      link
      fedilink
      English
      arrow-up
      6
      ·
      10 months ago

      It’s a coincidence that you mention that. One of my main motivations for making this was to have something that would be easy to use with the leptos UI.