Skip to content

Commit

Permalink
chore: fix selfhosting example
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Gressmann <[email protected]>
  • Loading branch information
explodingcamera committed Jan 26, 2024
1 parent f3d890a commit 133ae7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/rust/src/tinywasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 133ae7e

Please sign in to comment.