Skip to content

Commit

Permalink
chore: optimize release build
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Jun 14, 2024
1 parent f7289aa commit 0825cc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ wasm-bindgen = "0.2.92"

[lib]
crate-type = ["cdylib", "rlib"]

[profile.release]
codegen-units = 1
debug = false # set to `true` for debug information
lto = true
opt-level = "s"
panic = "abort" # Let it crash and force ourselves to write safe Rust.
strip = "symbols" # set to `false` for debug information

0 comments on commit 0825cc1

Please sign in to comment.