this post was submitted on 06 Feb 2024
18 points (90.9% liked)

Open Source

30812 readers
1085 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

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

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 8 months ago (1 children)

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

[–] [email protected] 6 points 8 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.

[–] [email protected] 7 points 8 months ago (1 children)

This is awesome, thank you! How it is so small?

[–] [email protected] 5 points 8 months ago* (last edited 8 months ago) (1 children)

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.

[–] [email protected] 2 points 8 months ago

Thank you for the explanation!