diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-09-11 22:51:30 +0200 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-09-11 22:51:30 +0200 |
| commit | c34f696794d42b194e44ec0d32f20f457b36e320 (patch) | |
| tree | b2733b7e1472972557c31c342fe2af2b951a8e9f /examples/rust | |
| parent | c5f45ff56f7538944d92d5d318a01d10da04535c (diff) | |
ci: fix build
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples/rust')
| -rw-r--r-- | examples/rust/src/print.wasm | bin | 0 -> 330 bytes | |||
| -rw-r--r-- | examples/rust/src/tinywasm.rs | 2 | ||||
| -rw-r--r-- | examples/rust/src/tinywasm_no_std.rs | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/examples/rust/src/print.wasm b/examples/rust/src/print.wasm Binary files differnew file mode 100644 index 0000000..e4aa125 --- /dev/null +++ b/examples/rust/src/print.wasm 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)?; |
