This commit is contained in:
me
2026-01-27 21:06:08 +08:00
parent 79fd98899e
commit 91f24cb462
5 changed files with 586 additions and 419 deletions

View File

@@ -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