Skip to content

Lower MSRV to 1.85 and add MSRV CI check - #1997

Merged
cmyr merged 1 commit into
googlefonts:mainfrom
DioxusLabs:lower-msrv-1.85
Aug 6, 2026
Merged

cmyr merged 1 commit into
googlefonts:mainfrom
DioxusLabs:lower-msrv-1.85

Conversation

@nicoburns

Copy link
Copy Markdown
Contributor

The MSRV was bumped to 1.89 in #1967 to match the rustc version running in CI, but this bump is not actually required (entire workspace builds with 1.85).

Changes:

  • Reduce MSRV back to 1.85
  • Add a CI job that runs 'cargo check --workspace' on the MSRV toolchain.
  • Patch-bump all publishable crates so the lowered MSRV can be released.

(Servo is still on MSRV 1.88, so can't upgrade to the latest versions atm)

We could also just reduce the rustc version used for all of CI. #1942 bumped to 1.89 to match the version supported by Skia, but it is unclear to me why this repo would need to run CI with the rustc version used by Skia.

nicoburns added a commit to linebender/resvg that referenced this pull request Aug 2, 2026
Turns out that we can use an older patch version of `font-types` to get
MSRV back down to 1.85.

Notes:
- The version of `read-fonts` we're using doesn't require the newer
`font-types`.
- Fontations currently has an artificially high MSRV (it declares 1.89
but builds fine with 1.85) so we should be able to get this back down
upstream (googlefonts/fontations#1997)
- This lowers the pinned dependency in our `Cargo.lock` (it doesn't pin
in `Cargo.toml`), so consumers can choose which `font-types` version
they prefer.

This will make it easier for Servo (which currently has an MSRV of 1.88)
to upgrade to the new resvg version.

Signed-off-by: Nico Burns <[email protected]>
@cmyr

cmyr commented Aug 5, 2026

Copy link
Copy Markdown
Member

there was a bit of a hiccup with that 1.89 bump, where CI and MSRV were bumped separately. We should definitely be keeping them in sync.

I forget the exact rationale for wanting to go to 1.89, maybe @wmedrano can elaborate?

I'm personally not sure how to think about MSRV. I like to be able to use new language features as they become available, but understand that as core library software we need to be somewhat conservative. I'm not sure how we should decide on where to draw the line, though? I would be very happy for some guidance on this... my best idea would just be to keep track of our major consumers (skia, servo, ??) and just track the lower of their MSRV, but if there is some more general guidance on this question I'd love to hear it.

@wmedrano

wmedrano commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Bumping down is ok. I initially wanted it for the smol-str dependency but I ended up doing a custom short string type

@cmyr cmyr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, no complaints here.

there's a new CI check about how we specify action revisions, so rebase this on main and update the actions to match what I did in #2002, and we can merge when CI is green.

I'd normally want to have the version changes be a separate patch but happy to take this as-is, I assume that you would like a release?

The MSRV was bumped to 1.89 in googlefonts#1967 to match CI, but no code requires
it. Lower it back to 1.85 and add a CI job that runs
'cargo check --workspace' on the MSRV toolchain so it stays accurate.

Patch-bump all publishable crates so the lowered MSRV can be released.

Signed-off-by: Nico Burns <[email protected]>
@cmyr

cmyr commented Aug 6, 2026

Copy link
Copy Markdown
Member

@nicoburns I assume you would like releases?

@cmyr
cmyr merged commit 8f295ea into googlefonts:main Aug 6, 2026
17 checks passed
@nicoburns

Copy link
Copy Markdown
Contributor Author

@cmyr I ideally would. Unfortunately it seems like 40cd87d is a breaking change, so the patch version bumps I've done here won't be sufficient.

(sorry - I should have thought to check for breaking changes from other patches when bumping versions)

So either we need bump minor versions for read-fonts/write-fonts and dependencies, or temporarily revert 40cd87d, publish a patch release, and then reinstate 40cd87d.

Happy to put up a PR for the former if that's helpful. The latter might be best done locally?

@cmyr

cmyr commented Aug 7, 2026

Copy link
Copy Markdown
Member

happy to just bump minor again, I'll do it.

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.

3 participants