Repalce cargo-web with wasm-pack

This commit is contained in:
Kitaiti Makoto 2021-02-13 22:57:51 +09:00
parent 4125851e4d
commit 6049d1f96e

View file

@ -16,8 +16,8 @@ For **GNU/Linux** and **Mac OS X**:
```bash ```bash
# Build the front-end # Build the front-end
cargo install cargo-web cargo install wasm-pack
cargo web deploy -p plume-front --release wasm-pack build --target web --release plume-front
# Build the back-end, replacing DATABASE either with # Build the back-end, replacing DATABASE either with
# postgres or sqlite depending on what you want to use # postgres or sqlite depending on what you want to use
@ -59,8 +59,8 @@ with postgres or sqlite depending on what you want to use:
cargo +stable install diesel_cli --no-default-features --features DATABASE --version '=1.3.0' --verbose cargo +stable install diesel_cli --no-default-features --features DATABASE --version '=1.3.0' --verbose
# Build the front-end # Build the front-end
cargo install cargo-web cargo install wasm-pack
cargo web deploy -p plume-front --release wasm-pack build --target web --release plume-front
# If using SQLite, copy sqlite3.lib from the stable version of RustUp to the nightly that was just installed # If using SQLite, copy sqlite3.lib from the stable version of RustUp to the nightly that was just installed
copy C:\Users\%USERNAME%\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\sqlite3.lib C:\Users\%USERNAME%\.rustup\toolchains\nightly-2020-01-15-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\sqlite3.lib copy C:\Users\%USERNAME%\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\sqlite3.lib C:\Users\%USERNAME%\.rustup\toolchains\nightly-2020-01-15-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\sqlite3.lib