diff --git a/wasm-components/rust/Cargo.toml b/wasm-components/rust/Cargo.toml index 8e9b29c..adcb4f2 100644 --- a/wasm-components/rust/Cargo.toml +++ b/wasm-components/rust/Cargo.toml @@ -14,3 +14,10 @@ resolver = "2" serde_json = "1.0.117" serde = { version = "1.0", features = ["derive"] } wit-bindgen = "0.32" + +[profile.release] +opt-level = "z" # Optimize for size. +lto = true # Enable Link Time Optimization +codegen-units = 1 # Reduce number of codegen units to increase optimizations. +panic = "abort" # Abort on panic +strip = true # Automatically strip symbols from the binary.