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:
|
serve:
|
||||||
cargo run -p server
|
cargo run -p server
|
||||||
|
|
||||||
# Build WASM (release) then run the server
|
# Build WASM then run the server
|
||||||
run: build
|
run: build-dev serve
|
||||||
cargo run --release -p server
|
|
||||||
|
|
||||||
# Type-check the workspace
|
# Type-check the workspace
|
||||||
check:
|
check:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.98.1"
|
channel = "1.98.1"
|
||||||
targets = ["wasm32-unknown-unknown"]
|
targets = ["wasm32-unknown-unknown"]
|
||||||
components = ["clippy", "rust-analyzer", "rustfmt"]
|
components = ["clippy", "rust-analyzer", "rustfmt", "rust-src"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue