uv/crates/pep440-rs/src
Charlie Marsh 9a3f3d385c
Remove `PubGrubVersion` (#924)
## Summary

I'm running into some annoyances converting `&Version` to
`&PubGrubVersion` (which is just a wrapper type around `Version`), and I
realized... We don't even need `PubGrubVersion`?

The reason we "need" it today is due to the orphan trait rule: `Version`
is defined in `pep440_rs`, but we want to `impl
pubgrub::version::Version for Version` in the resolver crate.

Instead of introducing a new type here, which leads to a lot of
awkwardness around conversion and API isolation, what if we instead just
implement `pubgrub::version::Version` in `pep440_rs` via a feature? That
way, we can just use `Version` everywhere without any confusion and
conversion for the wrapper type.
2024-01-15 08:51:12 -05:00
..
lib.rs Remove `PubGrubVersion` (#924) 2024-01-15 08:51:12 -05:00
version.rs Remove `PubGrubVersion` (#924) 2024-01-15 08:51:12 -05:00
version_specifier.rs Cleanup deps and docs (#882) 2024-01-11 10:43:40 +00:00