improve build

This commit is contained in:
Matthew Deville 2026-09-17 12:02:56 +02:00
parent 6f7d1a5f49
commit d3f440929b
3 changed files with 5 additions and 4 deletions

2
app/.cargo/config.toml Normal file
View file

@ -0,0 +1,2 @@
[build]
target = "wasm32-unknown-unknown"

View file

@ -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:

View file

@ -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"]