mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
chore(rust): comment on profile.release and set abort = "panic" for performance
This commit is contained in:
parent
f17bd87f65
commit
b2610387d3
1 changed files with 6 additions and 5 deletions
11
Cargo.toml
11
Cargo.toml
|
|
@ -31,10 +31,11 @@ clap = "4.1.6"
|
|||
indextree = "4.5.0"
|
||||
|
||||
[profile.release]
|
||||
# Configurations explicitly listed here for clarity.
|
||||
# Using the best options for performance.
|
||||
opt-level = 3
|
||||
lto = "fat"
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
|
||||
# DO NOT SET PANIC TO ABORT
|
||||
# we are using catch_unwind for panic recovery
|
||||
panic = "unwind"
|
||||
strip = "debuginfo"
|
||||
debug = false
|
||||
panic = "abort" # Let it crash and force ourselves to write safe Rust.
|
||||
|
|
|
|||
Loading…
Reference in a new issue