Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat: wasm support #390

Merged
merged 34 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5e8b5ae
feat: partial wasm32 support
mattsse Aug 18, 2021
16f82fc
Merge branch 'master' into wasm-support
mattsse Aug 20, 2021
72a525a
Merge branch 'master' into wasm-support
mattsse Aug 20, 2021
8c65689
Merge branch 'upstream/master' into wasm-support
mattsse Aug 20, 2021
2d66f66
make compile for wasm32
mattsse Aug 20, 2021
cf1c813
feat: att async-trait attr
mattsse Aug 20, 2021
e84a306
make compatible with wasm
mattsse Aug 20, 2021
5e77d51
add type alias for archs
mattsse Aug 20, 2021
18227fc
rustfmt
mattsse Aug 21, 2021
12f36af
add wasm ci
mattsse Aug 21, 2021
814787b
make compile with wasm-pack test
mattsse Aug 21, 2021
972ba4a
make compile with wasm-pack test
mattsse Aug 21, 2021
f58fb96
make compile with wasm-pack test
mattsse Aug 21, 2021
69a94fe
make compile with wasm-pack test
mattsse Aug 21, 2021
7e0db5c
ci: disable wasmpack
mattsse Aug 21, 2021
6c23e7a
feat: use wasm timer delay
mattsse Aug 21, 2021
5d5ab41
feat: add wasm provider
mattsse Aug 21, 2021
2c0e96c
Merge branch 'upstream/master' into wasm-support
mattsse Aug 21, 2021
d55680c
rustfmt
mattsse Aug 21, 2021
342610c
misc refactor
mattsse Aug 21, 2021
6c61431
add wasm example
mattsse Aug 21, 2021
f8ddd8c
make example a directory
mattsse Aug 21, 2021
7091f46
untrack error log
mattsse Aug 21, 2021
4f15140
move profile to root
mattsse Aug 22, 2021
7501ec3
fix unused imports
mattsse Aug 22, 2021
d76135e
ci: enable wasm-pack test
mattsse Aug 22, 2021
db6cc28
Merge branch 'upstream/master' into wasm-support
mattsse Aug 22, 2021
e10651e
style: unify websocket implementations
mattsse Aug 22, 2021
2af5640
fix: typos
mattsse Aug 22, 2021
5577b15
Merge branch 'upstream/master' into wasm-support
mattsse Aug 23, 2021
90e3398
fix: make policy compatible with wasm target
mattsse Aug 23, 2021
9c118dd
chore: do not include ethers-wasm example as top level workspace member
gakonst Aug 23, 2021
df1099f
chore: modify wasm32 dependencies
mattsse Aug 23, 2021
49b98c7
chore: make note about getrandom
mattsse Aug 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,47 @@ jobs:
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy -- -D warnings

wasm:
name: WASM
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 10
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --target wasm32-unknown-unknown

- name: Launch Ganache
run: |
cd examples/ethers-wasm
npm install
npm run ganache &

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Wasm-pack test firefox
run: |
cd examples/ethers-wasm
wasm-pack test --headless --firefox

- name: Wasm-pack test chrome
run: |
cd examples/ethers-wasm
wasm-pack test --headless --chrome
Loading