summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-09-11 22:51:30 +0200
committerHenry Gressmann <mail@henrygressmann.de>2024-09-11 22:51:30 +0200
commitc34f696794d42b194e44ec0d32f20f457b36e320 (patch)
treeb2733b7e1472972557c31c342fe2af2b951a8e9f /examples
parentc5f45ff56f7538944d92d5d318a01d10da04535c (diff)
ci: fix build
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples')
-rw-r--r--examples/rust/src/print.wasmbin0 -> 330 bytes
-rw-r--r--examples/rust/src/tinywasm.rs2
-rw-r--r--examples/rust/src/tinywasm_no_std.rs2
-rw-r--r--examples/wasm-rust.rs2
4 files changed, 3 insertions, 3 deletions
diff --git a/examples/rust/src/print.wasm b/examples/rust/src/print.wasm
new file mode 100644
index 0000000..e4aa125
--- /dev/null
+++ b/examples/rust/src/print.wasm
Binary files differ
diff --git a/examples/rust/src/tinywasm.rs b/examples/rust/src/tinywasm.rs
index 68e6375..c3bf2d2 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_stream(&include_bytes!("../out/print.wasm")[..])?;
+ let module = tinywasm::Module::parse_stream(&include_bytes!("./print.wasm")[..])?;
let mut store = tinywasm::Store::default();
let mut imports = tinywasm::Imports::new();
diff --git a/examples/rust/src/tinywasm_no_std.rs b/examples/rust/src/tinywasm_no_std.rs
index c20e243..07a6a8d 100644
--- a/examples/rust/src/tinywasm_no_std.rs
+++ b/examples/rust/src/tinywasm_no_std.rs
@@ -28,7 +28,7 @@ fn run() -> tinywasm::Result<()> {
let mut store = tinywasm::Store::default();
let mut imports = tinywasm::Imports::new();
- let res = tinywasm::parser::Parser::new().parse_module_bytes(include_bytes!("../out/print.wasm"))?;
+ let res = tinywasm::parser::Parser::new().parse_module_bytes(include_bytes!("./print.wasm"))?;
let twasm = res.serialize_twasm();
let module = tinywasm::Module::parse_bytes(&twasm)?;
diff --git a/examples/wasm-rust.rs b/examples/wasm-rust.rs
index a9c7572..89203c1 100644
--- a/examples/wasm-rust.rs
+++ b/examples/wasm-rust.rs
@@ -82,7 +82,7 @@ fn tinywasm() -> Result<()> {
}
fn tinywasm_no_std() -> Result<()> {
- let module = Module::parse_file("./examples/rust/out/tinywasm_no_std.opt.wasm")?;
+ let module = Module::parse_file("./examples/rust/out/tinywasm_no_std.wasm")?;
let mut store = Store::default();
let mut imports = Imports::new();