diff --git a/Cargo.toml b/Cargo.toml index 5ec8117..cca2149 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,7 @@ members = ["benchmarks"] [profile.release] lto = true codegen-units = 1 +debug = true [features] external_doc = [] diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 3a10847..8b536f3 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -17,3 +17,6 @@ crate-type = ["cdylib", "rlib"] [features] default = ["serde-json", "serde-wasm-bindgen"] serde-json = ["wasm-bindgen/serde-serialize"] + +[package.metadata.wasm-pack.profile.profiling] +wasm-opt = ['-O', '-g']