This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new dc81b3595 Move profile section in wasm-demo/Cargo.tml to the root
Cargo.toml. (#2354)
dc81b3595 is described below
commit dc81b3595158522549e3210a1c396f220ec83405
Author: Kousuke Saruta <[email protected]>
AuthorDate: Mon Jul 17 21:56:27 2023 +0900
Move profile section in wasm-demo/Cargo.tml to the root Cargo.toml. (#2354)
---
lang/rust/Cargo.toml | 4 ++++
lang/rust/wasm-demo/Cargo.toml | 4 ----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lang/rust/Cargo.toml b/lang/rust/Cargo.toml
index 43872102f..5e188c60d 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 b2799ef70..4dfade68a 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"