summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--examples/rust/src/tinywasm.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b3ed635..33cfdd1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ members=["crates/*", "examples/rust"]
resolver="2"
[profile.wasm]
-opt-level="z"
+opt-level="s"
lto="thin"
codegen-units=1
panic="abort"
diff --git a/examples/rust/src/tinywasm.rs b/examples/rust/src/tinywasm.rs
index 52af7b9..0f18ab9 100644
--- a/examples/rust/src/tinywasm.rs
+++ b/examples/rust/src/tinywasm.rs
@@ -12,7 +12,7 @@ pub extern "C" fn hello() {
}
fn run() -> tinywasm::Result<()> {
- let module = tinywasm::Module::parse_bytes(include_bytes!("../../wasm/hello.wasm"))?;
+ let module = tinywasm::Module::parse_bytes(include_bytes!("../out/hello.wasm"))?;
let mut store = tinywasm::Store::default();
let mut imports = tinywasm::Imports::new();