Skip to content

chore(rmcp): remove dependency on chrono default features#829

Open
chitao1234 wants to merge 1 commit intomodelcontextprotocol:mainfrom
chitao1234:drop-chrono-default-features
Open

chore(rmcp): remove dependency on chrono default features#829
chitao1234 wants to merge 1 commit intomodelcontextprotocol:mainfrom
chitao1234:drop-chrono-default-features

Conversation

@chitao1234
Copy link
Copy Markdown

Disable chrono default features for non-wasm rmcp builds and enable only the features rmcp actually uses. This avoids pulling unnecessary local-timezone support such as iana-time-zone / iana-time-zone-haiku, which can introduce avoidable platform library dependencies on Haiku. Fixes #828.

Motivation and Context

Issue #828 reports that rmcp’s native chrono dependency leaves default features enabled, which pulls in local-timezone support that rmcp does not use. On Haiku, that can bring in iana-time-zone-haiku and libbe.so, contributing to downstream link failures when combined with vendored zstd.

This change narrows the native chrono dependency to default-features = false with only ["serde", "now"] enabled. That keeps the functionalities rmcp uses while avoiding the extra dependency footprint from chrono defaults.

How Has This Been Tested?

cargo test -p rmcp, cargo test -p rmcp --all-features and cargo test --workspace --all under Linux x86_64

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

See #828.

@chitao1234 chitao1234 requested a review from a team as a code owner May 1, 2026 14:53
@github-actions github-actions Bot added T-dependencies Dependencies related changes T-config Configuration file changes labels May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-config Configuration file changes T-dependencies Dependencies related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider disabling chrono default features to avoid unnecessary iana-time-zone/libbe dependency on Haiku

1 participant