diff --git a/app/.cargo/config.toml b/app/.cargo/config.toml new file mode 100644 index 0000000..f4e8c00 --- /dev/null +++ b/app/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +target = "wasm32-unknown-unknown" diff --git a/justfile b/justfile index 1e1165b..6127ab1 100644 --- a/justfile +++ b/justfile @@ -21,9 +21,8 @@ build-all: build build-server serve: cargo run -p server -# Build WASM (release) then run the server -run: build - cargo run --release -p server +# Build WASM then run the server +run: build-dev serve # Type-check the workspace check: diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 62098d5..ff545b0 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] channel = "1.98.1" targets = ["wasm32-unknown-unknown"] -components = ["clippy", "rust-analyzer", "rustfmt"] +components = ["clippy", "rust-analyzer", "rustfmt", "rust-src"]