cli icon indicating copy to clipboard operation
cli copied to clipboard

Consider alternatives for `prettytable-rs`

Open kylewillmon opened this issue 3 years ago • 2 comments

The prettytable-rs crate has not received any updates in nearly 4 years now and appears to be abandoned. It still works and doesn't seem to have any major issues, but it is already causing us to have some duplicate dependencies (such as the itoa crate) and will cause more over time.

With a quick look around, I found comfy-table as a possible alternative, but there may be other options.

kylewillmon avatar Jun 23 '22 17:06 kylewillmon

Our table formatting code also isn't exactly complicated. I'd imagine we could probably roll our own relying mostly on unicode-width as the only necessary dependency.

cd-work avatar Jun 23 '22 17:06 cd-work

It looks like prettytable-rs has found some maintenance help from the Rust team. The same developer approved the rustsec advisory and released a new version of the crate.

That is definitely encouraging. But it's still probably worth rolling our own solution instead of relying on a dependency here.

kylewillmon avatar Jan 03 '23 18:01 kylewillmon