-
This commit is contained in:
14
Cargo.toml
14
Cargo.toml
@@ -4,17 +4,13 @@ version = "0.0.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
slint = { version = "1.14", default-features = false, features = ["backend-winit", "renderer-winit-skia", "compat-1-2"] }
|
||||
slint = { version = "1.14", default-features = false, features = ["backend-winit", "renderer-femtovg-wgpu", "compat-1-2"] }
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "1.14"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
lite = [] # Lightweight demo with minimal memory footprint
|
||||
|
||||
[profile.release]
|
||||
opt-level = 'z' # 优化代码体积
|
||||
lto = true # 开启链接时优化
|
||||
codegen-units = 1 # 牺牲编译速度换取更好的代码质量
|
||||
strip = true # 自动移除调试符号
|
||||
opt-level = 'z'
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
Reference in New Issue
Block a user