- cross-posted to:
- learningrustandlemmy
- cross-posted to:
- learningrustandlemmy
I threw together a rust client for lemmy to play a similar role to the lemmy-js-client.
This is awesome, thank you! How it is so small?
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.
Thank you for the explanation!
I’m quite surprised that doesn’t exist given the devs are working on replacing the inferno JS UI with Leptos with WASM.
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.