Skip to content

Commit 1738888

Browse files
Fix instructions for building rust modules in python examples
When I ran `rustc +nightly ...` the compiler just looked for a source file called `+nightly`. I changed these instructions to use rustup + rustc instead.
1 parent c202a8e commit 1738888

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/misc/py/examples/gcd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To build `gcd.wasm` use rustc (nightly) for wasm32 target with debug information:
44

55
```
6-
rustc +nightly --target=wasm32-unknown-unknown -g gcd.rs --crate-type=cdylib
6+
rustup run nightly rustc --target=wasm32-unknown-unknown -g gcd.rs --crate-type=cdylib
77
```
88

99
# Run example

crates/misc/py/examples/import/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To build `demo.wasm` use rustc (nightly) for wasm32 target with debug information:
44

55
```
6-
rustc +nightly --target=wasm32-unknown-unknown demo.rs --crate-type=cdylib
6+
rustup run nightly rustc --target=wasm32-unknown-unknown demo.rs --crate-type=cdylib
77
```
88

99
# Run example

crates/misc/py/examples/two_modules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
To build `one.wasm` use rustc (nightly) for wasm32 target with debug information:
44

55
```
6-
rustc +nightly --target=wasm32-unknown-unknown one.rs --crate-type=cdylib
6+
rustup run nightly rustc --target=wasm32-unknown-unknown one.rs --crate-type=cdylib
77
```
88

99
To build `two.wasm` use wabt.

0 commit comments

Comments
 (0)