diff --git a/lang/rust/Cargo.toml b/lang/rust/Cargo.toml index 43872102f28..5e188c60d02 100644 --- a/lang/rust/Cargo.toml +++ b/lang/rust/Cargo.toml @@ -37,3 +37,7 @@ rust-version = "1.65.0" keywords = ["avro", "data", "serialization"] categories = ["encoding"] documentation = "https://docs.rs/apache-avro" + +[profile.release.package.hello-wasm] +# Tell `rustc` to optimize for small code size. +opt-level = "s" diff --git a/lang/rust/wasm-demo/Cargo.toml b/lang/rust/wasm-demo/Cargo.toml index b2799ef70a6..4dfade68a9c 100644 --- a/lang/rust/wasm-demo/Cargo.toml +++ b/lang/rust/wasm-demo/Cargo.toml @@ -42,7 +42,3 @@ wasm-bindgen = "0.2.87" [dev-dependencies] console_error_panic_hook = { version = "0.1.6" } wasm-bindgen-test = "0.3.37" - -[profile.release] -# Tell `rustc` to optimize for small code size. -opt-level = "s"