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
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ jobs:
env:
MOCK_SERVER_URL: "wss://127.0.0.1:8080/ws/chat"
RUST_LOG: info
run: cargo test -p e2e-tests -- --no-capture
run: cargo test -p e2e-tests -- --nocapture
29 changes: 28 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,34 @@ jobs:
- name: Build project
run: cargo build --workspace --exclude e2e-tests --all-targets --verbose
- name: Run tests
run: cargo test --workspace --exclude e2e-tests --verbose -- --no-capture
run: cargo test --workspace --exclude e2e-tests --verbose -- --nocapture

test-all-features:
name: Build & Lint (all features)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Comment thread
jlucaso1 marked this conversation as resolved.
- uses: dtolnay/rust-toolchain@master
Comment thread
jlucaso1 marked this conversation as resolved.
with:
toolchain: nightly-2026-06-16
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@${{ env.PROTOC_VERSION }}
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Cache Rust registry
uses: Swatinem/rust-cache@v2
with:
cache-targets: "false"
- name: Build (all features)
run: cargo build --workspace --exclude e2e-tests --all-features --all-targets --verbose
- name: Clippy (all features)
run: cargo clippy --workspace --exclude e2e-tests --all-features --all-targets -- -D warnings
Comment thread
jlucaso1 marked this conversation as resolved.
# No `cargo test --all-features` here: `--all-features` turns on
# `danger-skip-cert-chain-verify` / `danger-skip-tls-verify`, which disable security
# verification (the cert-chain negative test is even `#![cfg]`'d out under it), so the
# suite would change behavior rather than catch rot. Build + clippy already cover that goal.

test-stable:
name: Test Stable (no-simd)
Expand Down
4 changes: 4 additions & 0 deletions examples/benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// See the matching note in lib.rs: instrumented large async fns need a deeper
// recursion limit when the `--all-features` paths (tracing + tracing-pii) combine.
#![recursion_limit = "512"]

use log::{error, info, warn};
use std::collections::HashMap;
use std::sync::Arc;
Expand Down
4 changes: 4 additions & 0 deletions tests/bench-integration/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// See the matching note in lib.rs: large async fns need a deeper recursion limit
// when the `--all-features` paths (tracing + tracing-pii) combine.
#![recursion_limit = "512"]

#[cfg(not(feature = "dhat-heap"))]
mod counting_alloc;

Expand Down
5 changes: 5 additions & 0 deletions tests/e2e/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// `--all-features` feature-unifies extra deps onto `whatsapp-rust`, enlarging the
// `send_and_expect_text()` future past the default layout-query depth. Matches the
// `512` already used in `src/lib.rs` / `examples/demo.rs`.
#![recursion_limit = "512"]

use std::collections::HashMap;
use std::sync::Arc;

Expand Down
Loading