Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[profile.rust-analyzer]
inherits = "dev"

[target.wasm32-unknown-unknown]
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']
10 changes: 5 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
target/
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}

# - name: Install WASM toolchain
# run: rustup target add wasm32-unknown-unknown
- name: Install WASM toolchain
run: rustup target add wasm32-unknown-unknown

- name: Check project
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

# - name: Check project (WASM)
# # Note lack of --all-targets here because tests and examples are not wasm compatible
# run: cargo clippy --workspace --all-features --target wasm32-unknown-unknown -- -D warnings
- name: Check project (WASM)
# Note lack of --all-targets here because tests and examples are not wasm compatible
run: cargo clippy --workspace --all-features --target wasm32-unknown-unknown -- -D warnings

test:
runs-on: ubuntu-latest
Expand Down
Loading
Loading