|
20 | 20 | -uses:actions/checkout@v3
|
21 | 21 | -uses:sfackler/actions/rustup@master
|
22 | 22 | -uses:sfackler/actions/rustfmt@master
|
23 |
| -
|
| 23 | + |
24 | 24 | clippy:
|
25 | 25 | name:clippy
|
26 | 26 | runs-on:ubuntu-latest
|
|
73 | 73 | path:target
|
74 | 74 | key:clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
|
75 | 75 | -run:|
|
76 |
| - sed -i 's/\[dev-dependencies]/[ignore-dependencies]/g' tokio-postgres/Cargo.toml |
77 |
| - cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features |
| 76 | + # Hack: wasm support currently relies on not having tokio with features like socket enabled. With resolver 1 |
| 77 | + # dev dependencies can add unwanted dependencies to the build, so we'll hackily disable them for this check. |
| 78 | +
|
| 79 | + sed -i 's/\[dev-dependencies]/[ignore-dependencies]/g' ./tokio-postgres/Cargo.toml |
| 80 | + cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features |
78 | 81 |
|
79 | 82 | test:
|
80 | 83 | name:test
|
|