feat: configure performance for the rust porttion

This commit is contained in:
Jet 2026-03-26 18:36:51 -07:00
parent 5356e2dbb4
commit c55413c47f
No known key found for this signature in database
4 changed files with 14 additions and 7 deletions

View file

@ -13,3 +13,14 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
tower-http = { version = "0.6", features = ["cors"] }
[profile.dev]
debug = "line-tables-only"
split-debuginfo = "unpacked"
[profile.release]
codegen-units = 1
debug = 0
lto = "thin"
panic = "abort"
strip = "symbols"

View file

@ -3,6 +3,3 @@ target = "wasm32-unknown-unknown"
[target.wasm32-unknown-unknown]
rustflags = ["-C", "link-arg=--strip-all"]
[unstable]
build-std = ["core", "alloc", "std", "panic_abort"]

View file

@ -1,5 +1,3 @@
cargo-features = ["panic-immediate-abort"]
[package]
name = "cgol"
version = "0.1.0"
@ -41,8 +39,9 @@ wasm-opt = false
debug = "line-tables-only"
[profile.release]
debug = 0
opt-level = 3
lto = true
codegen-units = 1
panic = "immediate-abort"
panic = "abort"
strip = true

View file

@ -99,7 +99,7 @@
pname = "jetpham-qa-api";
version = "0.1.0";
src = ./api;
cargoHash = "sha256-PL5D3NtPFZcDIxf8f2EOT7fahKVgt/+7obJIdR17AUY=";
cargoHash = "sha256-mAQUSA5S3uCCo4RbWVgzMMPDjVoSTcJCFdFOx9ZaxQo=";
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ pkgs.openssl ];
};