调整编译配置

This commit is contained in:
tommy
2025-11-13 10:42:28 +08:00
parent c72e2e48bd
commit 25433618b1
3 changed files with 196 additions and 473 deletions

5
.zed/debug.json Normal file
View File

@@ -0,0 +1,5 @@
// Project-local debug tasks
//
// For more documentation on how to configure debug tasks,
// see: https://zed.dev/docs/debugger
[]

653
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,8 +7,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus = { version = "0.7.0", features = ["router", "fullstack"] }
dioxus-motion = "0.3.1"
dioxus = { version = "0.7.1", features = ["router", "fullstack"] }
chrono = { version = "0.4", default-features = false, features = ["std"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
@@ -24,3 +23,11 @@ desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
# The feature that are only required for the server = ["dioxus/server"] build target should be optional and only enabled in the server = ["dioxus/server"] feature
server = ["dioxus/server"]
[profile.release]
opt-level = "s"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true