https://github.com/ewasm/rust-ewasm
[ORPHANE] Examples of compiling Rust code to ewasm contracts
https://github.com/ewasm/rust-ewasm
Last synced: 3 months ago
JSON representation
[ORPHANE] Examples of compiling Rust code to ewasm contracts
- Host: GitHub
- URL: https://github.com/ewasm/rust-ewasm
- Owner: ewasm
- License: apache-2.0
- Created: 2018-01-16T14:21:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-13T03:53:55.000Z (about 7 years ago)
- Last Synced: 2025-04-13T16:56:33.620Z (about 1 year ago)
- Language: WebAssembly
- Homepage:
- Size: 3.87 MB
- Stars: 21
- Watchers: 11
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-ewasm
Examples of compiling Rust code to ewasm contracts
These were compiled with rustc 1.25.0-nightly, and a [patched wasm-gc](https://github.com/ewasm/wasm-gc/pull/1).
```
$ rustup run nightly rustc --version
rustc 1.25.0-nightly (79a521bb9 2018-01-15)
$ rustup target add wasm32-unknown-unknown --toolchain nightly
$ cargo install --git https://github.com/ewasm/wasm-gc --branch keep-main-func
```
You also need [wabt](https://github.com/WebAssembly/wabt) for `wasm2wat`.