Skip to content

Commit 6f19bb9

Browse files
committed
clean up wasm32 test
1 parent 852869d commit 6f19bb9

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/ci.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,8 @@ jobs:
7171
- uses: actions/cache@v3
7272
with:
7373
path: target
74-
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
75-
- run: |
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 --features js
74+
key: check-wasm32-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
75+
- run: cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features --features js
8176

8277
test:
8378
name: test

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ members = [
1010
"postgres-types",
1111
"tokio-postgres",
1212
]
13+
resolver = "2"
1314

1415
[profile.release]
1516
debug = 2

0 commit comments

Comments
 (0)