feat: configure performance for the rust porttion
This commit is contained in:
parent
5356e2dbb4
commit
c55413c47f
4 changed files with 14 additions and 7 deletions
|
|
@ -13,3 +13,14 @@ serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
tower-http = { version = "0.6", features = ["cors"] }
|
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"
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,3 @@ target = "wasm32-unknown-unknown"
|
||||||
|
|
||||||
[target.wasm32-unknown-unknown]
|
[target.wasm32-unknown-unknown]
|
||||||
rustflags = ["-C", "link-arg=--strip-all"]
|
rustflags = ["-C", "link-arg=--strip-all"]
|
||||||
|
|
||||||
[unstable]
|
|
||||||
build-std = ["core", "alloc", "std", "panic_abort"]
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
cargo-features = ["panic-immediate-abort"]
|
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "cgol"
|
name = "cgol"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|
@ -41,8 +39,9 @@ wasm-opt = false
|
||||||
debug = "line-tables-only"
|
debug = "line-tables-only"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
debug = 0
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
panic = "immediate-abort"
|
panic = "abort"
|
||||||
strip = true
|
strip = true
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
pname = "jetpham-qa-api";
|
pname = "jetpham-qa-api";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = ./api;
|
src = ./api;
|
||||||
cargoHash = "sha256-PL5D3NtPFZcDIxf8f2EOT7fahKVgt/+7obJIdR17AUY=";
|
cargoHash = "sha256-mAQUSA5S3uCCo4RbWVgzMMPDjVoSTcJCFdFOx9ZaxQo=";
|
||||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
buildInputs = [ pkgs.openssl ];
|
buildInputs = [ pkgs.openssl ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue