pubgrub-rs / pubgrub

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

Add `Range::as_singleton` #186

Closed konstin closed 3 months ago

konstin commented 3 months ago

We use this method for better error messages:

https://github.com/astral-sh/uv/blob/8d721830db8ad75b8b7ef38edc0e346696c52e3d/crates/uv-resolver/src/pubgrub/report.rs#L92-L96

https://github.com/astral-sh/uv/blob/8d721830db8ad75b8b7ef38edc0e346696c52e3d/crates/uv-resolver/src/pubgrub/report.rs#L509-L520

konstin commented 3 months ago

The commit name will need to match conventional commits (or there will need to be more than one commit and the PR name matches conventional commits) for CI to merge. When that's taking care of +1.

I'll fixup the PRs