We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d890a commit 133ae7eCopy full SHA for 133ae7e
Cargo.toml
@@ -3,7 +3,7 @@ members=["crates/*", "examples/rust"]
3
resolver="2"
4
5
[profile.wasm]
6
-opt-level="z"
+opt-level="s"
7
lto="thin"
8
codegen-units=1
9
panic="abort"
examples/rust/src/tinywasm.rs
@@ -12,7 +12,7 @@ pub extern "C" fn hello() {
12
}
13
14
fn run() -> tinywasm::Result<()> {
15
- let module = tinywasm::Module::parse_bytes(include_bytes!("../../wasm/hello.wasm"))?;
+ let module = tinywasm::Module::parse_bytes(include_bytes!("../out/hello.wasm"))?;
16
let mut store = tinywasm::Store::default();
17
let mut imports = tinywasm::Imports::new();
18
0 commit comments