Skip to content

Keep owned builders while supporting Send async setup - #325

Merged
alexliesenfeld merged 14 commits into
masterfrom
owned-builders-send
Oct 4, 2026
Merged

alexliesenfeld merged 14 commits into
masterfrom
owned-builders-send

Conversation

@alexliesenfeld

@alexliesenfeld alexliesenfeld commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Async mock, forwarding, proxy, and recording registration can run inside tokio::spawn while retaining owned builders without lifetime parameters. The builders use Arc<Mutex<_>> and implement Send + Sync; setup extracts the owned configuration before registering it with the server.

This replaces #320 after its source branch was renamed and includes the changes from #322. The original discussion remains in #320.

Existing owned helpers, structs storing builders, immediate 'static callbacks, and staged forwarding/proxy filters remain supported. As introduced in #322, RecordingRuleBuilder::config becomes crate-private; this is a breaking change documented in the changelog.

The earlier full-suite results in #320 predate this combined branch; the full suite has not been rerun for this merge.

@alexliesenfeld
alexliesenfeld merged commit 2149a1c into master Oct 4, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants