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

  • CannotSleep420@lemmygrad.mlOP
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    10 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.