Skip to content

Commit 04f71c8

Browse files
committed
Update docs
1 parent 0fe359b commit 04f71c8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,26 @@ cargo install bindgen
4444
cargo build --release
4545

4646
# or:
47-
cargo build --release --no-default-features --features build-bindgen
47+
cargo build --release --features build-bindgen
48+
49+
# or, enable only specific features:
50+
cargo build --release --no-default-features --features build-bindgen,std,use-32bit-slots,wasi
4851
```
4952

53+
54+
## Build and run examples
55+
56+
```sh
57+
rustup target add wasm32-unknown-unknown
58+
59+
python wasm_bin_builder.py ./examples/wasm/wasm_add
60+
cargo run --example call_wasm
61+
62+
python wasm_bin_builder.py ./examples/wasm/wasm_print
63+
cargo run --example wasm_print
64+
```
65+
66+
5067
## License
5168

5269
Licensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)

0 commit comments

Comments
 (0)