Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 321 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 321 Bytes

Rswasm

This project shows how to compile a rust library to a wasm library using only cargo.

Compile

The example project is a function that calculates pi.

$ rustup target add wasm32-unknown-unknown
$ cargo build

Run

$ pip install pywasm
$ python script/run.py
# pi = 3.1415926535901733