Repository navigation
Lower MSRV to 1.85 and add MSRV CI check - #1997
Conversation
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]>
|
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. |
|
Bumping down is ok. I initially wanted it for the smol-str dependency but I ended up doing a custom short string type |
cmyr
left a comment
There was a problem hiding this comment.
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?
2a18566 to
9298e6e
Compare
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]>
9298e6e to
4e32e67
Compare
|
@nicoburns I assume you would like releases? |
|
@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? |
|
happy to just bump minor again, I'll do it. |
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:
(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.