-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Find a replacement for rust-yaml #467
Comments
I get your point, but also, this is relative / subjective. If the users of insta are okay with this, that's up to them. Anyway, from an outside perspective, having a fixed-up version of the original |
Insta is a testing library. By definition it has to support the rust versions that people are targeting, so it needs to be significantly more conservative than other libraries. There are users of this crate which have very conservative MSRV targets. It might be that over time the solution is to be more deliberate about the MSRV support and to encourage people to use older versions of insta but that so far has not been the way this has been approached. The dependencies themselves I'm very cautious about. Insta has a relatively low number of dependencies so that a) I can ensure a conservative MSRV and b) because every dependency causes pain. Case in point: yaml-rust today. yaml-rust2 is also unable to pass the minver check since it depends on |
Hi! I'm sorry that I had not taken into account the MSRV when updating the library. What would be the MSRV you are currently targetting? Also, are you using the encoding features of Edit: This definitely did not come from the |
Hey @mitsuhiko, just read your blog post. My experience as a user of your libraries has been stellar and from my POV you absolutely didn't need to immediately react to #463 and any duplicates or make the rustsec warning disappear for these folks. On the flipside, I think it's good that there is now #467 that people can watch if they want to know about updates to this situation. I also think it's good that people got unmaintained crate warnings (whether it should cause CI to fail is a matter of taste IMHO), such that they can investigate, which in this case likely lead many Anyways, thanks for being on top of things, and try not to let people stress you out :) Thanks also @Ethiraric for putting a bunch of effort into a high-quality YAML crate for Rust, including the new potential considerations for lowering the MSRV! |
With the following changes, I can get MSRV down to 1.65.0:
I can further get it down to 1.64.0:
Going further down would require tracking down changes in |
@Ethiraric so the thing here is that insta is a pretty odd bird here and to which degree does it even make sense for a library like When I looked at
Also it depending on As for MSRV that is currently targeted: 1.51 is what it has today, but for the next major I'm considering pushing it up to 1.67 which is the lowest that can be supported by the other upgraded libraries. |
If I'm not mistaken:
Then I don't consider it particularly "catering" to your needs. Taken out of context, those 2 changes do make sense. The debug stuff was behind a Encoding is something many wouldn't need. I can leave that as an on-by-default feature that you would manually have to disable. This removes dependencies, speeds up compile-time and decreases binary bloat for those who wouldn't use it. I honestly think those 2 changes would do great to the crate. On a totally unrelated note, I do plan on some changes for the library (discussed here). I hadn't anticipated When are you planning on releasing your next major version? |
No huge urgency. There are a few things that accumulated alongside that are worth addressing in a major bump. |
Alright. I'll do the changes on By the time you make the release, there's a high chance that we move development to another crate, notably to have a similarly-named set of crates for all YAML-related things. |
Today insta now has to vendor
rust-yaml
largely because there is no replacement available.serde_yaml
: deprecatedyaml-rust2
: too many dependencies, too new MSRVThe text was updated successfully, but these errors were encountered: