You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chrono is flagged unmaintained (RUSTSEC-2026-0543): any plan to move to jiff/time or make it optional? #1469
P2Medium: important but non-blocking improvementT-dependenciesDependencies related changesT-modelModel/data structure changesenhancementNew feature or request
RustSec published RUSTSEC-2026-0543 on 2026-09-14, an informational unmaintained advisory saying all versions of chrono are affected and there is no patched version. The advisory suggests jiff or time instead.
rmcp (3.10.0) depends on chrono unconditionally, for timestamps in the model types (annotations, tasks, progress, the session store). It also enables schemars's chrono04 feature, so every downstream project that runs cargo deny check advisories (or cargo audit with unmaintained warnings denied) now fails, and has to add an ignore entry.
Questions:
Is there a plan to replace chrono (with jiff or time), or to put it behind a feature flag?
Since the timestamps are in the public model types, would this wait for the next major version, or could it go in a minor release by keeping the wire format (RFC 3339 strings) the same?
We've added a scoped ignore in our project for now, and we're happy to test a branch. Thanks for maintaining the SDK.
(Issue drafted with AI assistance and reviewed before posting.)
Reacted by Eli Golderg, Tommy Irish, Nixon, Andreas Penz, Jim Kring, Seferino Fernandez and Luca Ciucci
We hit this too: cargo deny check advisories now fails in two downstream projects through rmcp (and schemars's chrono04 feature), and we carry a time-boxed ignore for RUSTSEC-2026-0543 until there is a fix. A chrono feature (on by default, so nothing breaks) or a move to jiff would let us remove the ignore.
On main (3.11.0), chrono is no longer in any model type: Annotations.last_modified is already a String. What remains is:
three internal uses: task_manager::current_timestamp() (to_rfc3339), the requestState clock (timestamp_millis) and the ServiceError::Timeout message (chrono::Duration's Display);
two builders that take chrono::DateTime<Utc>: Annotations::for_resource and Annotations::with_timestamp;
schemars' chrono04 feature, which no rmcp type needs any more.
That makes a non-breaking minor release possible. I have a working branch that does this (branch chrono-optional, one commit on main):
the internal uses move to jiff 1 (default-features = false, features = ["std"]), with small helpers that keep the exact previous text: +00:00 offset, 0/3/6/9 fractional digits, and PT30S / PT1.5S / P0D in the timeout message. Tests pin these against chrono's output.
a new default feature chrono keeps the two builders and schemars?/chrono04, so nothing changes with default features.
with default-features = false, chrono drops out for every feature except auth*, which still pulls it in through oauth2 5.
Checks on the branch:
nightly fmt;
clippy -D warnings with all features, with all features except local, and with 8 smaller feature sets, including none;
cargo test --all-features (1213 passed) and --lib --no-default-features (208 passed);
cargo semver-checks for both CI feature sets ("no semver update required");
nightly docs with --cfg docsrs -Dwarnings;
cargo +1.88.0 check --all-targets --all-features.
A later major release could then remove chrono from the default features. If this direction works for you, I can open the PR. I'm happy to rename the feature or adjust the approach.
AI assistance: I used an AI coding assistant (Claude Code) to write most of this change and draft this text; I reviewed and tested it.
P2Medium: important but non-blocking improvementT-dependenciesDependencies related changesT-modelModel/data structure changesenhancementNew feature or request
Activity
github-actions commentedon Nov 17, 2026
@michaelneale is on triage rotation this week and is the reviewer for this one.
Codex labeled this enhancement / P2 (T-dependencies, T-model). Please confirm or correct those labels.
Automated triage. Labels are a first pass and the assigned maintainer has the final say.
Eli-Goldberg commentedon Nov 17, 2026
Came here for this, for us this is high priority
tirish commentedon Nov 17, 2026
We hit this too:
cargo deny check advisoriesnow fails in two downstream projects throughrmcp(andschemars'schrono04feature), and we carry a time-boxed ignore for RUSTSEC-2026-0543 until there is a fix. Achronofeature (on by default, so nothing breaks) or a move tojiffwould let us remove the ignore.build(deps): accept chrono's unmaintained advisory
fix: ignore chrono failure until upstream updates (#968)
Deps: jiff instead of chrono, trash 5.4, and a time-boxed ignore for …
docs(backlog): track dropping the RUSTSEC-2026-0543 ignore
chore(deny): ignore the chrono unmaintained advisory
andreinknv commentedon Nov 17, 2026
On
main(3.11.0), chrono is no longer in any model type:Annotations.last_modifiedis already aString. What remains is:task_manager::current_timestamp()(to_rfc3339), therequestStateclock (timestamp_millis) and theServiceError::Timeoutmessage (chrono::Duration'sDisplay);chrono::DateTime<Utc>:Annotations::for_resourceandAnnotations::with_timestamp;chrono04feature, which no rmcp type needs any more.That makes a non-breaking minor release possible. I have a working branch that does this (branch
chrono-optional, one commit onmain):default-features = false, features = ["std"]), with small helpers that keep the exact previous text:+00:00offset, 0/3/6/9 fractional digits, andPT30S/PT1.5S/P0Din the timeout message. Tests pin these against chrono's output.chronokeeps the two builders andschemars?/chrono04, so nothing changes with default features.default-features = false, chrono drops out for every feature exceptauth*, which still pulls it in throughoauth25.Checks on the branch:
-D warningswith all features, with all features exceptlocal, and with 8 smaller feature sets, including none;cargo test --all-features(1213 passed) and--lib --no-default-features(208 passed);cargo semver-checksfor both CI feature sets ("no semver update required");--cfg docsrs -Dwarnings;cargo +1.88.0 check --all-targets --all-features.A later major release could then remove
chronofrom the default features. If this direction works for you, I can open the PR. I'm happy to rename the feature or adjust the approach.AI assistance: I used an AI coding assistant (Claude Code) to write most of this change and draft this text; I reviewed and tested it.
🤖 Generated with Claude Code
fix(deps): accept chrono unmaintained (RUSTSEC-2026-0543) until rmcp …
Aiddy81 commentedon Nov 18, 2026
Thanks @andreinknv. This direction works for us. Downstream result from patching
rmcpandrmcp-macrostoa95b804(chrono-optional) in our project:default-features = false,server,macros,transport-io,transport-streamable-http-server(noauth*). Our ownschemars = "1"doesn't enablechrono04.cargo tree -i chronofinds no match, so chrono is gone from the whole workspace.cargo deny check advisoriespasses without our RUSTSEC-2026-0543 ignore.So a minor release with this would let us drop the ignore entirely. +1 for opening the PR.
(Tested and posted with AI assistance.)
deny: ignore RUSTSEC-2026-0543 (chrono via rmcp) until rmcp drops it (#…
ci: ignore the rmcp chrono advisory in osv-scanner
ci: ignore the chrono unmaintained notice until rmcp drops it
fix(audit): ignore unmaintained chrono pulled in by rmcp