Skip to content

Migration from yaml-rust2 to saphyr? #654

Open
@LecrisUT

Description

@LecrisUT

They yaml-rust2 crate is indicating that it is in maintenance mode 1 and it is recommending migration to saphyr. The issue mentions that these are fairly similar, but I'm not sure if it refers to the API being similar.

Footnotes

  1. https://github.com/Ethiraric/yaml-rust2/issues/26

Activity

linked a pull request that will close this issue on Apr 9, 2025
epage

epage commented on Apr 9, 2025

@epage
Contributor

Thanks for bringing saphyr to our attention!

it is recommending migration to saphyr.

Maybe I missed something in my read but I didn't quite read it that way. yaml-rust2 is still supported. The distinction mostly comes down to what your tolerance for breaking changes / churn is. The fact that the version is only 0.0.3 communicates a level of instability that I would hesitate to take on at this time. I also would worry for the quality perception people would have in seeing a 0.0.x dependency in their dependency tree.

For now, I lean towards sticking with yaml-rust2 and that we can re-evaluate that as saphyr matures.

LecrisUT

LecrisUT commented on Apr 10, 2025

@LecrisUT
Author

My main concern is if yaml-rust2 will get dependencies updated in time. So far neither of them have a dependabot/renovatebot setup. If they plan to keep them both updated, then yeah it would make sense to pick the more stable one for now. I have tried to contribute a renovatebot setup, but I couldn't cook up a minimal one to propose. Maybe you guys have more experience and could make a PR for that?

epage

epage commented on Apr 10, 2025

@epage
Contributor

The setup I use for all of my libraries is at https://github.com/epage/_rust/blob/main/.github/renovate.json5

LecrisUT

LecrisUT commented on Apr 10, 2025

@LecrisUT
Author

I thought that one had a required setup of labels and such. But yeah, it could work. I'll make a few PRs for those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @epage@LecrisUT

      Issue actions

        Migration from `yaml-rust2` to `saphyr`? · Issue #654 · rust-cli/config-rs