Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lord/wargo
Easy Rust to WebAssembly
https://github.com/lord/wargo
cargo rust webassembly webdriver
Last synced: about 2 months ago
JSON representation
Easy Rust to WebAssembly
- Host: GitHub
- URL: https://github.com/lord/wargo
- Owner: lord
- License: mit
- Created: 2017-10-17T23:20:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T15:11:50.000Z (almost 7 years ago)
- Last Synced: 2024-07-10T08:46:39.920Z (2 months ago)
- Topics: cargo, rust, webassembly, webdriver
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 262
- Watchers: 9
- Forks: 9
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
`wargo` makes it easy to compile Rust into WebAssembly on macOS or Linux. To install:
npm install -g wargo
To use, just `wargo build` instead of `cargo build`. We'll automatically make sure the Emscripten compiler is installed and configured before each run.
cargo new --bin meow
cd meow
wargo buildWant to run your tests in the browser? No problem — we've got `wargo test`. Just run Selenium locally, set some environment variables, and you're ready to go.
export WEBDRIVER_HOST="localhost"
export WEBDRIVER_PORT="5555"
wargo testDon't want to install Selenium? `wargo` can also run tests using [Sauce Connect](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy).
export SAUCE_USERNAME="your username"
export SAUCE_ACCESS_KEY="blah-1234-1234-1234"
export WEBDRIVER_CAPABILITIES='{"browserName": "chrome"}'
wargo testFor more information, check out [the tutorial blog post](https://lord.io/blog/2017/wargo).