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

Impl core::error::Error instead of std::error::Error #333

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DeppLearning
Copy link

Hey there,

thanks for the great library! I noticed that the Error trait is not implemented for BuilderErrors when the std feature is inactive. Rust 1.81 stabilized core::error::Error, it would be nice if this crate could make use of it and lift the former restriction. Since, as implemented, this would be a breaking change, I'm wondering what the preferred way forward is. I can think of

  • add a feature flag, like core_error that opts into using core::error::Error instead of the std version
  • use something like https://crates.io/crates/rustversion/ to gate the core version behind a #[rustversion::since(1.81)]
  • others?

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.

1 participant