@@ -200,10 +200,10 @@ jobs:
200200 run : cargo build --target wasm32-unknown-unknown -p iroh-base --all-features
201201
202202 - name : wasm32 build (iroh-relay)
203- run : cargo build --target wasm32-unknown-unknown -p iroh-relay --no-default-features
203+ run : cargo build --target wasm32-unknown-unknown -p iroh-relay
204204
205205 - name : wasm32 build (iroh)
206- run : cargo build --target wasm32-unknown-unknown -p iroh --no-default-features
206+ run : cargo build --target wasm32-unknown-unknown -p iroh
207207
208208 # If the Wasm file contains any 'import "env"' declarations, then
209209 # some non-Wasm-compatible code made it into the final code.
@@ -216,7 +216,7 @@ jobs:
216216 ! wasm-tools print --skeleton target/wasm32-unknown-unknown/debug/iroh.wasm | grep 'import "env"'
217217
218218 - name : Run integration test in wasm
219- run : cargo test -p iroh --test integration --target=wasm32-unknown-unknown --no-default-features
219+ run : cargo test -p iroh --test integration --target=wasm32-unknown-unknown
220220
221221 check_semver :
222222 runs-on : ubuntu-latest
@@ -317,11 +317,13 @@ jobs:
317317 - uses : dtolnay/rust-toolchain@stable
318318 - name : Verify optional deps are absent without features
319319 run : |
320- tree=$(cargo tree -p iroh --no-default-features --edges normal)
321320 fail=0
322- for dep in portmapper igd-next swarm-discovery; do
323- if echo "$tree" | grep -q "$dep"; then
321+ for dep in portmapper igd-next swarm-discovery ring aws-lc-rs; do
322+ echo "cargo tree -p iroh --no-default-features --edges normal --target all -i $dep";
323+ output=$(cargo tree -p iroh --no-default-features --edges normal --target all -i "$dep" 2>&1) || true
324+ if ! echo "$output" | grep -qE "(nothing to print|did not match any packages)"; then
324325 echo "ERROR: $dep should not be in the dependency tree without its feature"
326+ echo "$output"
325327 fail=1
326328 fi
327329 done
0 commit comments