diff --git a/misc/wasmtime-py/examples/import/README.md b/misc/wasmtime-py/examples/import/README.md index bdc4830b89..db56dcbe9b 100644 --- a/misc/wasmtime-py/examples/import/README.md +++ b/misc/wasmtime-py/examples/import/README.md @@ -1,9 +1,9 @@ # Build example's file -To build `main.wasm` use rustc (nightly) for wasm32 target with debug information: +To build `demo.wasm` use rustc (nightly) for wasm32 target with debug information: ``` -rustc +nightly --target=wasm32-unknown-unknown main.rs --crate-type=cdylib +rustc +nightly --target=wasm32-unknown-unknown demo.rs --crate-type=cdylib ``` # Run example diff --git a/misc/wasmtime-py/examples/import/main.rs b/misc/wasmtime-py/examples/import/demo.rs similarity index 100% rename from misc/wasmtime-py/examples/import/main.rs rename to misc/wasmtime-py/examples/import/demo.rs diff --git a/misc/wasmtime-py/examples/import/run.py b/misc/wasmtime-py/examples/import/run.py index e190f2b7b7..f39baccd49 100644 --- a/misc/wasmtime-py/examples/import/run.py +++ b/misc/wasmtime-py/examples/import/run.py @@ -1,4 +1,4 @@ import wasmtime -import main +import demo -main.test() +demo.test()