Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haikoschol/cats-of-asia-rs
Cats of Asia Reloaded in Rust & Leptos
https://github.com/haikoschol/cats-of-asia-rs
leptos rust wasm webapp
Last synced: about 2 months ago
JSON representation
Cats of Asia Reloaded in Rust & Leptos
- Host: GitHub
- URL: https://github.com/haikoschol/cats-of-asia-rs
- Owner: haikoschol
- License: mit
- Created: 2023-11-24T06:52:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T07:19:53.000Z (about 1 year ago)
- Last Synced: 2024-05-02T00:39:51.852Z (9 months ago)
- Topics: leptos, rust, wasm, webapp
- Language: Rust
- Homepage:
- Size: 790 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cats of Asia
This is a partial rewrite of [cats-of-asia](https://github.com/haikoschol/cats-of-asia) in Leptos.
I went just as far as necessary to satisfy my curiosity about Leptos and Rust/wasm in the browser
in general. It was fun and quite productive in the beginning. But then I struggled to properly
integrate with leaflet.js from Rust and ended up writing all of the popup rendering in
DOM-manipulating Javascript again.Then I somehow ended up in borrow checker hell when implementing the `` component and
only got out of it with a lot of un-Leptos seeming code and hacks. The result works, but the
code sucks.I couldn't be arsed to do the backend stuff, so this relies on fetching a JSON with image
metadata from https://catsof.asia/images.Overall I think Leptos looks promising for complex frontends that don't need to interact with
JS libraries which don't fit into it's rendering philosophy. Considering that I still don't
know much about managing lifetimes in Rust I got pretty far with it. Also ChatGPT was much more
useful than I expected for this pretty niche tech.