-
Notifications
You must be signed in to change notification settings - Fork 4
Upgrade annotate-snippets
to 0.9.1
#2
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
base: master
Are you sure you want to change the base?
Conversation
This would be great to see land - I've just cherry-picked it for the debian package of chic. |
@zanieb fancy seeing you here |
:) my pre-hire ambition to make Astral's Ruff builds a tiny bit faster by de-duplicating dependencies. Maybe I should revisit this now that I actually know Rust! |
@yoshuawuyts anything we can do to help this land? |
There hasn't been a commit here in 5 years, it seems unlikely? Are you looking for a new maintainer? |
1f3d0e4
to
27c99b5
Compare
For what it's worth I just prepared patches for Debian building on top of our cherry-pick of this patch, upgrading to 0.10 and 0.11. |
I've taken these patches and applied them to the Fedora package too, but it looks like they actually introduce unintentional API changes, which make the libcst crate fail to compile :( |
Yeah I made these changes before I really knew Rust — these are definitely breaking changes and should come with a version bump. It doesn't really seem worth creating a non-breaking patch? I could look into it if it's meaningful though. It looks Debian applies this https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/libcst/debian/patches/chic-api |
Oh, great, looks like I can just take that additional patch, thanks! |
The downstream packaging toil has prompted me to go try to fix this at the source Instagram/LibCST#1293 |
And that's been merged! Since it's unmaintained, hopefully this just removes Let me know if there's another common package depending on it. |
Hi!
This upgrades use of the
annotate-snippets
dependency to be compatible with the latest version —0.9.1
.They made a few changes, notably:
DisplayListFormatter
has been replaced withstd::format::Display
I'm new to Rust so any feedback is very welcome! I'm not sure but I presume the changes from
impl ToString
to&'a str
are not always backwards compatible?