Skip to content

Commit 94efa90

Browse files
authored
chore: list [profile.release] explicitly (#198)
chore: list [profile.explicitly] explicitly
1 parent fc9e13c commit 94efa90

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Cargo.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ include = ["/src", "/examples", "/benches"]
2020
[lib]
2121
doctest = false
2222

23-
[profile.release]
24-
strip = true
25-
lto = true
26-
2723
[[bench]]
2824
name = "resolver"
2925
harness = false
@@ -109,3 +105,14 @@ codspeed = ["criterion2/codspeed"]
109105
[package.metadata.docs.rs]
110106
all-features = true
111107
rustdoc-args = ["--cfg", "docsrs"]
108+
109+
# For napi
110+
[profile.release]
111+
# Configurations explicitly listed here for clarity.
112+
# Using the best options for performance.
113+
opt-level = 3
114+
lto = "fat"
115+
codegen-units = 1
116+
strip = "symbols" # set to `false` for debug information
117+
debug = false # set to `true` for debug information
118+
panic = "abort" # Let it crash and force ourselves to write safe Rust.

0 commit comments

Comments
 (0)