Clarify Rust example build prereqs

This commit is contained in:
Chad Retz 2017-12-06 10:01:52 -06:00
parent bc980b1e81
commit ffbf6a5288
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,8 @@
### Example: Rust Regex
This shows an example of using the Rust regex library on the JVM compiled via WASM. This builds on
the [rust-simple](../rust-simple) and [rust-string](../rust-string) examples. There is also a simple benchmark checking
the performance compared to the built-in Java regex engine.
the [rust-simple](../rust-simple) and [rust-string](../rust-string) examples. See the former for build prereqs. There is
also a simple benchmark checking the performance compared to the built-in Java regex engine.
#### Main

View File

@ -9,8 +9,10 @@ to `asmble.generated.RustSimple` in `build/wasm-classes`. The class is used by
[Main.java](src/main/java/asmble/examples/rustsimple/Main.java). It is instantiated with a set of memory and then
`add_one` is invoked with `25` to return `26`.
To run it yourself, run the following from the root `asmble` dir (assuming you have built the Gradle wrapper described
in the root README's "Building and Testing" section):
To run it yourself, you need the Gradle wrapper installed (see the root README's "Building and Testing" section, namely
`gradle wrapper` in the root w/ latest Gradle) and the latest Rust nightly (i.e. `rustup default nightly`) with the
`wasm32-unknown-unknown` target installed (i.e. `rustup target add wasm32-unknown-unknown --toolchain nightly`). Then
run the following from the root `asmble` dir:
gradlew --no-daemon :examples:rust-simple:run