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

Make serde_yaml dependency optional #168

Closed
wants to merge 1 commit into from

Conversation

weiznich
Copy link
Contributor

Thanks for already removing the problematic serde_yml dependency. I just went a step further and added a feature to allow to remove any yaml dependencies for these that don't need to handle the yaml format.

Fixes #152

Comment on lines 17 to 19
#[display("YAML error")]
#[cfg(feature = "yaml_spec")]
Yaml(serde_yaml::Error),
Copy link
Member

Choose a reason for hiding this comment

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

feature guarding enum variants is a no-go for me, i'll get this solved another way

Copy link
Member

Choose a reason for hiding this comment

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

maintainer PR edits are not enabled, see #169 for suggested change

Copy link
Member

@robjtede robjtede Jan 30, 2025

Choose a reason for hiding this comment

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

Still open to feedback on the approach shown there. It's unfortunately to lose the I/O methods but I can't think of a good solution immediately, but fns can be added if we come up with something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for taking over, that's really appreciated. I do not have any better idea regarding to the error type than what's already implemented.

@robjtede robjtede closed this Jan 30, 2025
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.

Make yaml an optional feature
2 participants