pubgrub-rs / pubgrub

PubGrub version solving algorithm implemented in Rust
https://pubgrub-rs.github.io/pubgrub/pubgrub/
Mozilla Public License 2.0
337 stars 30 forks source link

Extend error type to `Send + Sync` #136

Closed charliermarsh closed 8 months ago

charliermarsh commented 8 months ago

Summary

Though we may want to adopt a fully generic error type eventually, this at least makes the error type compatible with anyhow (and makes it async-friendly, which is both good and bad, since it requires that user errors are thread safe regardless of whether it's important for them to be).

See: https://github.com/pubgrub-rs/pubgrub/issues/116

mpizenberg commented 8 months ago

I trust you on this one.