Skip to content

Commit

Permalink
Add config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
appcypher committed Feb 17, 2023
1 parent d2c8441 commit 30e0946
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[target.'cfg(target_arch = "wasm32")']
rustflags = [
"-C", "panic=abort",
# "-C", "lto=yes", // https://users.rust-lang.org/t/error-lto-can-only-be-run-for-executables-cdylibs-and-static-library-outputs/73369
"-C", "embed-bitcode=yes",
"-C", "debuginfo=0",
"-C", "opt-level=z",
"-C", "codegen-units=1",
"-C", "debug-assertions=no",
]
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,3 @@ members = [
# See https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#splitting-debug-information
[profile.dev]
split-debuginfo = "unpacked"

[profile.release]
codegen-units = 1
strip = "symbols"
debug = false
lto = true
opt-level = "z"
panic = 'abort'

0 comments on commit 30e0946

Please sign in to comment.