uv/crates/pep440-rs/src
konsti b84fbb86b2
Impl Version debug as display (#606)
Currently, `dbg!` is hard to read because versions are verbose, showing
all optional fields, and we have a lot of versions. Changing debug
formatting to displaying the version number (which can be losslessly
converted to the struct and back) makes this more readable.

See e.g.
https://gist.github.com/konstin/38c0f32b109dffa73b3aa0ab86b9662b

**Before**

```text
version: Version {
    epoch: 0,
    release: [
        1,
        2,
        3,
    ],
    pre: None,
    post: None,
    dev: None,
    local: None,
},
```

**After**

```text
version: "1.2.3",
```
2023-12-11 16:38:14 +01:00
..
lib.rs Copy over `pep440-rs` crate (#30) 2023-10-06 20:11:52 -04:00
version.rs Impl Version debug as display (#606) 2023-12-11 16:38:14 +01:00
version_specifier.rs Filter out incompatible dists (#398) 2023-11-13 17:14:07 +01:00