Skip to content

Commit

Permalink
feat: 优化打包体积
Browse files Browse the repository at this point in the history
  • Loading branch information
1739616529 committed Jan 11, 2024
1 parent fb30a26 commit dae0d7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
"crates/nsv",
]

# [profile.release]
# opt-level = 'z' # Optimize for size
# lto = true
# codegen-units = 1
[profile.release]
opt-level = 'z' # Optimize for size
lto = true
codegen-units = 1
5 changes: 0 additions & 5 deletions crates/nsv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,4 @@ thiserror = "1.0.50"
tokio = { version = "1.34.0", features = ["full"] }
url = "2.4.1"

[profile.release]
opt-level = 'z' # Optimize for size
lto = true
codegen-units = 1
panic = 'abort'

0 comments on commit dae0d7c

Please sign in to comment.