Files
wasmtime/misc/wasmtime-py
Josh Triplett 06e9170f30 wasmtime-py: Don't use "main.rs" for a wasm example so cargo doesn't test it (#464)
cargo test will test examples that have a "main.rs", but in this case,
the example requires manual compilation as a wasm module, and doesn't
build as a standalone program. Rename it to "demo.rs".
2019-10-29 15:47:49 +01:00
..
2019-10-17 17:12:01 -07:00

Python 3 extension for interface with Wasmtime/Cranelift.

Build

First, you'll need to install some Python dependencies:

$ pip3 install setuptools wheel==0.31.1 setuptools-rust

Next you can build the extension with:

rustup run nightly python3 setup.py build

Note that a nightly version of Rust is required due to our usage of PyO3.

This will create a directory called build/lib which you can add to PYTHONPATH in order to get import wasmtime working.