From 2bc651949b600504654840844dc3808858e39879 Mon Sep 17 00:00:00 2001 From: Princesseuh <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:14:29 +0100 Subject: [PATCH] fix: rename cargo profile --- Cargo.toml | 2 +- justfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 79f81ad..0a95215 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,6 @@ opt-level = 3 lto = "fat" codegen-units = 1 -[profile.bench] +[profile.benchmark] inherits = "release" debug = true diff --git a/justfile b/justfile index 43cf316..75b0434 100644 --- a/justfile +++ b/justfile @@ -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