feat: gate StdioTransport behind default-on stdio feature#30
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move
StdioTransport,serve_stdio, and therig_mcp_stdio_fixturebinary behind a newstdioCargo feature, enabled by default. The feature pullstokioand the matching rmcp transports (transport-io,transport-child-process); the base rmcp surface stays atclient+server+macros.This restores the runtime-agnostic guarantee documented in AGENTS.md: the
McpTransport,LoopbackTransport,McpTool,CachedResultsTransport,RegistrationSnapshot, andresult_cachesurfaces all compile under--no-default-featureswithout tokio in the direct dependency tree. Default-features users see no behavior change.CI now exercises both
--all-featuresand--no-default-featuresto keep the runtime-agnostic surface honest. Justfileclippyrecipe runs both feature combos locally as well.Also fixes duplicate
### Addedheaders in the v0.2.0 and v0.2.2 CHANGELOG entries and refreshes README + AGENTS.md to describe the feature and surfaces honestly.