build: improve speed

This commit is contained in:
zhom
2025-11-29 12:29:07 +04:00
parent 0acfa66e16
commit 955cf887a0
3 changed files with 24 additions and 0 deletions
+1
View File
@@ -37,6 +37,7 @@
"datas",
"DBAPI",
"dconf",
"debuginfo",
"devedition",
"distro",
"doctest",
+4
View File
@@ -0,0 +1,4 @@
[build]
# Omit jobs setting to use all cores
incremental = true
+19
View File
@@ -105,6 +105,25 @@ futures-util = "0.3"
name = "donut_proxy_integration"
path = "tests/donut_proxy_integration.rs"
[profile.dev]
codegen-units = 256
incremental = true
opt-level = 0
# Split debuginfo on macOS for faster linking (ignored on other platforms)
split-debuginfo = "unpacked"
[profile.release]
codegen-units = 1
opt-level = 3
lto = "thin"
# Split debuginfo on macOS for faster linking (ignored on other platforms)
split-debuginfo = "unpacked"
[profile.test]
# Optimize test builds for faster compilation
codegen-units = 256
incremental = true
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` points to the filesystem