Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kurbo and svg dependencies, fix a clippy warning. #562

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

ratmice
Copy link
Contributor

@ratmice ratmice commented Dec 8, 2023

This updates to the latest kurbo, I could have a version which is compatible with both piet and vello...

  • Svg had a future incompatibility warning, upgrade to fix that.
  • Clippy noticed that font_kit::sources::MultiSource is !Send !Sync, So replace Arc<Mutex<MultiSource> with Rc<RefCell<_>>.

Not sure if this last bit is a wanted change, or if it'd be preferred to just silence the warning, or ignore it entirely?

@ratmice ratmice force-pushed the update_svg_kurbo branch 3 times, most recently from 920b70b to 6b73e28 Compare December 8, 2023 19:43
Svg had a future incompatibility warning, upgrade to fix that.
Clippy noticed that MultiSource is !Send, !Sync.
So replace Arc<Mutex<MultiSource> with Rc<RefCell<_>>.
Ditto for piet-coregraphics.
Copy link
Collaborator

@jneem jneem left a comment

Choose a reason for hiding this comment

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

I'm not sure whether we want MultiSource to be Send or Sync, but it appears to be !Send and !Sync on all platforms, so the change here should have no visible effect.

This does seem to be a breaking change, since the re-export is public.

@ratmice
Copy link
Contributor Author

ratmice commented Dec 26, 2023

Yeah, perhaps it is better if I drop the version bumps to avoid the breaking changes?
I didn't really end up using the library I wanted this version bump for, but it'd be good to get the lints updated regardless.

@jneem
Copy link
Collaborator

jneem commented Dec 28, 2023

I don't think it's so bad to have the version bump, just as long as we're aware that it needs one. I think it makes sense to have a version of piet that's compatible with the latest version of kurbo, after all.

@ratmice ratmice merged commit e78a787 into linebender:master Dec 29, 2023
16 checks passed
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.

2 participants