Skip to content

Commit 133ae7e

Browse files
chore: fix selfhosting example
Signed-off-by: Henry Gressmann <[email protected]>
1 parent f3d890a commit 133ae7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members=["crates/*", "examples/rust"]
33
resolver="2"
44

55
[profile.wasm]
6-
opt-level="z"
6+
opt-level="s"
77
lto="thin"
88
codegen-units=1
99
panic="abort"

examples/rust/src/tinywasm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub extern "C" fn hello() {
1212
}
1313

1414
fn run() -> tinywasm::Result<()> {
15-
let module = tinywasm::Module::parse_bytes(include_bytes!("../../wasm/hello.wasm"))?;
15+
let module = tinywasm::Module::parse_bytes(include_bytes!("../out/hello.wasm"))?;
1616
let mut store = tinywasm::Store::default();
1717
let mut imports = tinywasm::Imports::new();
1818

0 commit comments

Comments
 (0)