Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gschup/ggrs
Browse files Browse the repository at this point in the history
  • Loading branch information
gschup committed Mar 30, 2023
2 parents ef80bba + 57af19f commit ac7e67a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,21 @@ jobs:
run: cargo doc --verbose
- name: Check formatting
run: cargo fmt --check

check-wasm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install stable wasm toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Check wasm
uses: actions-rs/cargo@v1
with:
command: check
args: --target wasm32-unknown-unknown --features wasm-bindgen
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ categories = ["network-programming", "game-development"]

[features]
sync-send = []
wasm-bindgen = ["instant/wasm-bindgen"]
wasm-bindgen = ["instant/wasm-bindgen", "getrandom/js"]

[dependencies]
serde = { version = "1.0", features = ["derive"] }
Expand All @@ -22,6 +22,7 @@ bitfield-rle = "0.2"
parking_lot = "0.11"
instant = "0.1"
bytemuck = {version = "1.9", features = ["derive"]}
getrandom = {version = "0.2", optional = true}

[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3"
Expand Down

0 comments on commit ac7e67a

Please sign in to comment.