Skip to content

feat: gate StdioTransport behind default-on stdio feature#30

Merged
ForeverAngry merged 1 commit into
mainfrom
feat/stdio-feature-gate
May 28, 2026
Merged

feat: gate StdioTransport behind default-on stdio feature#30
ForeverAngry merged 1 commit into
mainfrom
feat/stdio-feature-gate

Conversation

@ForeverAngry

Copy link
Copy Markdown
Owner

Move StdioTransport, serve_stdio, and the rig_mcp_stdio_fixture binary behind a new stdio Cargo feature, enabled by default. The feature pulls tokio and the matching rmcp transports (transport-io, transport-child-process); the base rmcp surface stays at client + server + macros.

This restores the runtime-agnostic guarantee documented in AGENTS.md: the McpTransport, LoopbackTransport, McpTool, CachedResultsTransport, RegistrationSnapshot, and result_cache surfaces all compile under --no-default-features without tokio in the direct dependency tree. Default-features users see no behavior change.

CI now exercises both --all-features and --no-default-features to keep the runtime-agnostic surface honest. Justfile clippy recipe runs both feature combos locally as well.

Also fixes duplicate ### Added headers in the v0.2.0 and v0.2.2 CHANGELOG entries and refreshes README + AGENTS.md to describe the feature and surfaces honestly.

Move StdioTransport, serve_stdio, and the rig_mcp_stdio_fixture binary
behind a new `stdio` Cargo feature that is enabled by default. The
feature is what pulls `tokio` and the matching rmcp transports
(`transport-io`, `transport-child-process`); the base rmcp surface stays
at `client` + `server` + `macros`.

This restores the runtime-agnostic guarantee documented in AGENTS.md:
the `McpTransport`, `LoopbackTransport`, `McpTool`,
`CachedResultsTransport`, `RegistrationSnapshot`, and `result_cache`
surfaces all compile under `--no-default-features` without tokio in the
direct dependency tree. Default-features users see no behavior change.

CI now exercises both `--all-features` and `--no-default-features` to
keep the runtime-agnostic surface honest. Justfile clippy recipe runs
both feature combos locally as well.

Also fixes duplicate `### Added` headers in the v0.2.0 and v0.2.2
CHANGELOG entries that release-plz had emitted from sibling commits, and
refreshes README + AGENTS.md to describe the feature and surfaces honestly.
Copilot AI review requested due to automatic review settings May 28, 2026 20:00
@ForeverAngry ForeverAngry merged commit 05132b8 into main May 28, 2026
9 checks passed
@github-actions github-actions Bot mentioned this pull request May 28, 2026
@ForeverAngry ForeverAngry removed the request for review from Copilot May 28, 2026 20:22
This was referenced May 30, 2026
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