https://github.com/chemyl/tax_app_webassembly
A simple frontend interface connected to a Rust backend via WebAssembly.
https://github.com/chemyl/tax_app_webassembly
js rust rust-lang wasm-bindgen webassembly
Last synced: 4 months ago
JSON representation
A simple frontend interface connected to a Rust backend via WebAssembly.
- Host: GitHub
- URL: https://github.com/chemyl/tax_app_webassembly
- Owner: chemyl
- License: mit
- Created: 2024-11-05T06:55:51.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-01-26T02:40:32.000Z (5 months ago)
- Last Synced: 2025-01-26T03:23:32.412Z (5 months ago)
- Topics: js, rust, rust-lang, wasm-bindgen, webassembly
- Language: Rust
- Homepage:
- Size: 389 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Basic project of interpreting Rust code into a web application using WebAssembly



- create library crate -> `cargo new project --lib`
- add library annotation for compiler ->` [lib] crate-type = ["cdylib"]`
- create skeleton inside `index.html` and extend `script block` with logic of working with wasm inclusion
- install wasm-pack -> `cargo install wasm-pack`
- build project with wasm-pack -> `wasm-pack build --target web`
- include web server -> `npm install -g http-server`
- start server in project root folder -> `http-server .`