From 6049d1f96e2ee48a1081500cebef567b9e9afcec Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sat, 13 Feb 2021 22:57:51 +0900 Subject: [PATCH] Repalce cargo-web with wasm-pack --- source/installation/with/source-code.html.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/installation/with/source-code.html.md b/source/installation/with/source-code.html.md index 365d8f1..e9dccc1 100644 --- a/source/installation/with/source-code.html.md +++ b/source/installation/with/source-code.html.md @@ -16,8 +16,8 @@ For **GNU/Linux** and **Mac OS X**: ```bash # Build the front-end -cargo install cargo-web -cargo web deploy -p plume-front --release +cargo install wasm-pack +wasm-pack build --target web --release plume-front # Build the back-end, replacing DATABASE either with # 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 # Build the front-end -cargo install cargo-web -cargo web deploy -p plume-front --release +cargo install wasm-pack +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 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