Repository navigation
Conversation
url 2.5.8 has RUSTSEC-2026-0592: Url::origin() recurses once for each nested blob: prefix, so a long URL overflows the stack. The update also moves form_urlencoded from 1.2.2 to 1.2.3, which url 2.5.9 requires. Signed-off-by: Jonathan Oddy <jonathan@woaf.net>
chrono is unmaintained (RUSTSEC-2026-0543), and no version fixes it. Replace it with jiff::Timestamp, which the serenity next branch also uses. - Turn off the chrono feature of serenity. Its Timestamp then wraps time::OffsetDateTime, and message_time() converts that to jiff. - jiff stops about one day before the ends of years -9999 and 9999. A Discord timestamp outside that range converts to None, and the PRIVMSG then has no @time= tag (spec 05). The Discord event fields are now Option<jiff::Timestamp>. - Add tests that fix the @time= text as YYYY-MM-DDTHH:MM:SS.mmmZ. They passed on chrono before the change. Signed-off-by: Jonathan Oddy <jonathan@woaf.net>
cargo-mutants turned off gitignore filtering by default in 25.0.2. Each job then copies .claude/worktrees with the target directory of each worktree, and a local run fills the disk. Signed-off-by: Jonathan Oddy <jonathan@woaf.net>
Review findings 1, 2 and Part 2 item 2: - jiff parses @time= with the wider jiff::fmt::temporal grammar, not only RFC 3339. Spec 02 now says so, and two tests pin it. - Split the outbound tag property into a shape test (years 0 to 9999) and a round-trip test over the whole jiff range. The round trip rounds down to milliseconds, also before 1970. - Remove outbound_message_with_timestamp_and_mtags_emits_time_tag. outbound_time_tag_has_milliseconds_and_zulu checks the same input with the exact text. Signed-off-by: Jonathan Oddy <jonathan@woaf.net>
Review findings 3, 4 and 7: - The jiff range is about one day shorter than serenity's at each end: -9999-01-02T01:59:59Z to 9999-12-30T22:00:00.999999999Z. The earlier text was wrong at the low end. Spec 05 cites the jiff docs. - Remove the message_time property test. It drew only whole milliseconds, and the unit tests already pin both limits, the values just outside them, and microsecond precision. Signed-off-by: Jonathan Oddy <jonathan@woaf.net>
Review finding 6: spec 05 TODO no longer says chrono, and the serenity 0.13 item says to remove message_time. Signed-off-by: Jonathan Oddy <jonathan@woaf.net>
This branch has not been deployed
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.
Summary
The weekly Advisories job fails on two new advisories. This PR fixes both.
url2.5.8, stack overflow inUrl::origin()): updateurlto 2.5.9. This also updatesform_urlencodedto 1.2.3.chronois unmaintained, no fix): replacechronowithjiff::Timestamp. The serenitynextbranch also usesjiff, so the move to serenity 0.13 needs no second migration.chronofeature is off. The other default features stay on. serenity'sTimestampthen wrapstime::OffsetDateTime, andmessage_time()converts it tojiff.jiffis about one day shorter than serenity's at each end (-9999-01-02T01:59:59Z to 9999-12-30T22:00:00.999999999Z). A Discord timestamp outside it givesNone, and thePRIVMSGhas no@time=tag (spec 05). The Discord event fields are nowOption<jiff::Timestamp>.@time=text does not change:YYYY-MM-DDTHH:MM:SS.mmmZ. New tests pin it.@time=parser now accepts the widerjiff::fmt::temporalgrammar, not only RFC 3339. Examples are basic format, an offset of hours only, and a time zone annotation. A leap second becomes:59. Nothing reads this field today. Spec 02 records it.It also sets
gitignore = truein.cargo/mutants.toml. Since cargo-mutants 25.0.2 the default is off, and a local run copies.claude/worktreesinto each build directory.RUSTSEC-2026-0440 (
astral-tokio-tar) still fails the Advisories job. #129 handles it.Not done: the serenity feature list keeps
frameworkandstandard_framework, which disirc does not use. Removing them is a separate change; this PR only removeschronofrom the defaults.Test plan
cargo testcargo clippy --all-targets -- -D warningscargo fmt --checkcargo deny check bans licenses sourcescargo mutants --in-diffon the branch: 8 mutants, 6 caught, 2 unviable