improve build
This commit is contained in:
parent
6f7d1a5f49
commit
d3f440929b
3 changed files with 5 additions and 4 deletions
2
app/.cargo/config.toml
Normal file
2
app/.cargo/config.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[build]
|
||||
target = "wasm32-unknown-unknown"
|
||||
5
justfile
5
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:
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue