-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Migrated from yaml-rust to its well-maintaned fork #461
Conversation
Came here to post this PR, but didn't have to! :) Thanks! |
BTW, if the code changes are undesired, there is a way to "alias" it back to the old package name: |
Note that Ethiraric/yaml-rust2#9 is needed to avoid https://rustsec.org/advisories/RUSTSEC-2021-0153. That's already been merged into master but there is no release with that change yet. |
There is now! :) |
Unfortunately this completely bumps the MSRV up significantly. This means I need to balance people that care about an unmaintained crate vs need support for older rust versions :-/ |
Do you think it would be feasible to make the |
No. Because the YAML parser is also used internally to read snapshot headers. Maybe the right solution for now is to vendor a stripped down version of the old yaml crate until a new major. See also #450 |
And this is with There's also this sort of thing: I'm not saying it's pretty, but would you be open to something like this? |
I'm not sure what the right course of action is. yaml-rust2 seems to bump up the MSRV to ridiculous levels. I'm not sure what it targets but even 0.7.0 seems to require rustc 1.70.0. |
I really think it would be worth giving a try to the dependency toggling feature, making use of the complete API compatibility of the fork. |
Not sure what the point of this is. YAML is necessary for insta to even read any snapshot file. There is no MSRV compatible version of insta that does not have YAML support and if I need YAML support within insta for it's own uses, then i might as well only use that instead of entertaining two versions. |
I meant that the feature would switch between the original and the fork for both internal uses and the exposed But sure, if you are okay with the big MSRV bump for #466, unconditionally switching to the fork, that also works. |
Unfortunately it does not look like |
This PR changes the yaml-rust dependency to yaml-rust2.
yaml-rust
crate hasn't been updated in 3 years, and since nobody was able to reach the author it was forked.Related issues:
Why migrate now? Due to https://rustsec.org/advisories/RUSTSEC-2024-0320, now this dependency causes cargo-deny to fail builds on projects that use it.