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

Reconsider the "interior mutability" pattern we are imposing on users due to not using `&mut` in our types? #115

Open Eh2406 opened 2 years ago

Eh2406 commented 2 years ago

When were done with all the significant changes to our API, we should look at whether it would be more appropriate to past &mut self where we currently use &self. On one hand we don't need the mutability. On the other hand the mutability would make caching dependency providers easier to implement.