Skip to content

Commit

Permalink
fix: rename cargo profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Dec 4, 2024
1 parent bbab3c6 commit 2bc6519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ opt-level = 3
lto = "fat"
codegen-units = 1

[profile.bench]
[profile.benchmark]
inherits = "release"
debug = true
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build mode=default_mode:
build-wasm mode=default_mode:
just fetch-data
echo "Building to WASM target..."
cargo build --target wasm32-unknown-unknown {{ if mode == "release" {"--release"} else if mode == "bench" {"--profile bench"} else {""} }} --features wasm
cargo build --target wasm32-unknown-unknown {{ if mode == "release" {"--release"} else if mode == "benchmark" {"--profile benchmark"} else {""} }} --features wasm
wasm-bindgen ./target/wasm32-unknown-unknown/{{mode}}/csslsrs.wasm --out-dir ./packages/csslsrs/src/generated --target=experimental-nodejs-module
wasm-opt -O4 ./packages/csslsrs/src/generated/csslsrs_bg.wasm -o ./packages/csslsrs/src/generated/csslsrs_bg.wasm
pnpm -C ./packages/csslsrs install
Expand Down

0 comments on commit 2bc6519

Please sign in to comment.