Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilaborie/jug-summer-camp-24
Et si on écrivait nos Web Components en Rust?
https://github.com/ilaborie/jug-summer-camp-24
Last synced: about 2 months ago
JSON representation
Et si on écrivait nos Web Components en Rust?
- Host: GitHub
- URL: https://github.com/ilaborie/jug-summer-camp-24
- Owner: ilaborie
- Created: 2024-08-16T14:17:20.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-04T18:01:19.000Z (4 months ago)
- Last Synced: 2024-09-06T01:22:05.387Z (4 months ago)
- Language: Rust
- Size: 274 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How about writing our Web Components in Rust?
## Requirements
* NodeJS 20+, see [Download Node](https://nodejs.org/en/download/package-manager)
* Rust development tools installed, see [rustup](https://rustup.rs/)
* Extra rust tools:
* [`wasm-pack`](https://github.com/rustwasm/wasm-pack) for building WASM
* [`dioxus-cli`](https://dioxuslabs.com/learn/0.5/getting_started) the [Dioxus](https://dioxuslabs.com/) companion CLI
* [`cargo-watch`](https://github.com/watchexec/cargo-watch) to watch an rebuild the codeRust tools can be installed with `cargo install `
or with `cargo binstall ` if you have [`cargo-binstall`](https://github.com/cargo-bins/cargo-binstall) installedThis project use [mise](https://mise.jdx.dev/) to set requirements
To install node dependencies, use `npm ci`
Then you can build WASM in `rust-wc/` and `dioxus-wc/` with `wasm-pack build --release --no-pack --target web`
## Try it
Just need to run `mise run dev` or `npm run watch & npm run dev` to launch the DEV mode.
Then open