-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #966 from daxpedda/web-sys-fixes
web-sys master merge
- Loading branch information
Showing
50 changed files
with
1,300 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
report_todo = "Unnumbered" | ||
report_fixme = "Unnumbered" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
## Contribution Guide | ||
|
||
### Setup your local development environment | ||
|
||
#### Add the wasm target | ||
|
||
```bash | ||
rustup target add wasm32-unknown-unknown | ||
``` | ||
|
||
#### Install [cargo-web] | ||
|
||
This is an optional tool that simplifies running the examples: | ||
|
||
```bash | ||
cargo install cargo-web | ||
``` | ||
|
||
> Add `--force` option to ensure you install the latest version. | ||
[cargo-web]: https://github.com/koute/cargo-web | ||
|
||
#### Build | ||
|
||
```bash | ||
cargo build --target wasm32-unknown-unknown | ||
``` | ||
|
||
#### Test | ||
For the tests to work one have to ensure that `wasm-bindgen-cli` is installed. | ||
[Instructions](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/usage.html#install-the-test-runner) | ||
|
||
Additionally a webdriver must be installed locally and configured to be on the | ||
`PATH`. Currently supports `geckodriver`, `chromedriver`, and `safaridriver`, | ||
although more driver support may be added! You can download these at: | ||
|
||
* geckodriver - https://github.com/mozilla/geckodriver/releases | ||
* chromedriver - http://chromedriver.chromium.org/downloads | ||
* safaridriver - should be preinstalled on OSX | ||
|
||
```bash | ||
./ci/run_tests.sh | ||
``` | ||
or | ||
|
||
```bash | ||
cargo test --target wasm32-unknown-unknown --features wasm_test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.