https://github.com/gifnksm/emscripten-sys
Emscripten API bindings for Rust
https://github.com/gifnksm/emscripten-sys
binding emscripten rust
Last synced: 7 months ago
JSON representation
Emscripten API bindings for Rust
- Host: GitHub
- URL: https://github.com/gifnksm/emscripten-sys
- Owner: gifnksm
- License: apache-2.0
- Created: 2017-02-27T14:10:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T12:58:53.000Z (over 6 years ago)
- Last Synced: 2024-09-10T11:04:30.506Z (almost 2 years ago)
- Topics: binding, emscripten, rust
- Language: Rust
- Size: 1.15 MB
- Stars: 18
- Watchers: 2
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Emscripten API bindings for Rust
[](https://travis-ci.org/gifnksm/emscripten-sys)
[](https://crates.io/crates/emscripten-sys)
[Documentation](https://gifnksm.github.io/emscripten-sys/emscripten_sys)
## Usage
Add the following dependencies to your `Cargo.toml`:
```toml
[target.'cfg(target_os = "emscripten")'.dependencies]
emscripten-sys = "0.3"
```
## How to build
```
. /emsdk_env.sh
cargo build --target asmjs-unknown-emscripten
```
## How to test
```
cargo test --target asmjs-unknown-emscripten --no-run
node target/asmjs-unknown-emscripten/debug/emscripten_sys-*.js
```