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

Remove 'failure' dep in favor of 'thiserror' #15

Merged
merged 1 commit into from Jul 6, 2022

Conversation

kelnos
Copy link
Contributor

@kelnos kelnos commented Jun 10, 2022

The failure crate has been deprecated for some time, with a recommendation to use thiserror instead. In addition, a critical memory safety issue (rust-lang-deprecated/failure#336) has been found in failure that is unlikely to be fixed. rustc-cfg is not vulnerable to the issue, but IMO it's better to just avoid having failure in our dependency trees at all.

This also adds a concrete Error enum type in favor of strings in a
generic error type.
Copy link
Owner

@japaric japaric left a comment

Choose a reason for hiding this comment

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

thanks!

@japaric
Copy link
Owner

japaric commented Jul 6, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 6, 2022

Build succeeded:

@bors bors bot merged commit 10348cd into japaric:main Jul 6, 2022
@japaric
Copy link
Owner

japaric commented Jul 6, 2022

v0.5.0 includes this change

@kelnos kelnos deleted the remove-failure-dep branch July 6, 2022 20:50
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.

None yet

2 participants