From d3f440929b9512da2b8026b615a1bbf99f6fe7af Mon Sep 17 00:00:00 2001 From: Matthew Deville Date: Thu, 17 Sep 2026 12:02:56 +0200 Subject: [PATCH] improve build --- app/.cargo/config.toml | 2 ++ justfile | 5 ++--- rust-toolchain.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 app/.cargo/config.toml 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"]