https://github.com/DrSensor/example-vue-component-rust
example of how to mix Rust code compiled as WebAssembly with Vue
https://github.com/DrSensor/example-vue-component-rust
my-study
Last synced: 11 months ago
JSON representation
example of how to mix Rust code compiled as WebAssembly with Vue
- Host: GitHub
- URL: https://github.com/DrSensor/example-vue-component-rust
- Owner: DrSensor
- License: mit
- Created: 2018-05-24T07:40:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T19:00:58.000Z (almost 8 years ago)
- Last Synced: 2024-11-20T18:50:30.311Z (over 1 year ago)
- Topics: my-study
- Language: Vue
- Size: 84 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# example-vue-component-rust
[blog post](https://busy.org/@drsensor/mix-rust-code-webassembly-with-vue-component-basic)
#### Setup
install and setup rust toolchain first
```bash
rustup default nightly
rustup target add wasm32-unknown-unknown
cargo install wasm-gc
```
then
```bash
git clone git@github.com:DrSensor/example-vue-component-rust.git
yarn install
```
#### Run
```bash
yarn serve --open
```
#### Build
```bash
yarn build
```
the result are in `./dist` directory
## License
MIT