quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.57k stars 363 forks source link

Debug formatting could be improved #1822

Open gretchenfrage opened 2 months ago

gretchenfrage commented 2 months ago

For example, when trying to print a quinn::Endpoint, when it gets to recv_buf, it just prints a list of many many integers with little discernible meaning. Possibly would be worth looking for a crate that enhances derive debugging with the ability to attribute structs with fields to ignore rather than doing it manually.

djc commented 2 months ago

I don't think we want to drag in an additional dependency for this. But having a manual Debug impl that's more discerning than whatever we've got now would probably be helpful!