Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[slog-term] RUSTSEC-2018-0015: term is looking for a new maintainer #267

Open
tyranron opened this issue Jul 11, 2020 · 5 comments
Open
Labels
P-low Priority: Low slog-term crate: slog-term

Comments

@tyranron
Copy link

term is looking for a new maintainer

Details
Status unmaintained
Package term
Version 0.6.1
URL Stebalien/term#93
Date 2018-11-19

The author of the term crate does not have time to maintain it and is looking
for a new maintainer.

Some maintained alternatives you can potentially switch to instead, depending
on your needs:

See advisory page for additional details.

@dpc
Copy link
Collaborator

dpc commented Jul 12, 2020

Wasn't there like a community for abandoned crates running them in low-effort maintenance mode by bunch of people doing voting or something?

@0xpr03
Copy link

0xpr03 commented Aug 13, 2021

Cargo and other rustc tools moved to termcolor as a replacement that also works with MSYS2. At this point it's probably better to migrate to the crate that has active maintainership and a bigger buy-in.

@dpc
Copy link
Collaborator

dpc commented Sep 7, 2021

Accepting PRs. Maybe I'll get to it myself eventually.

@Techcable
Copy link
Member

I've looked in from switching to term to termcolor. There are one our two annoyances with this.

  1. The big problem is you can't ask "Does the terminal support bold?" You can only ask if the terminal supports "Colors".
  2. When using color=always it will forcibly outputting ANSI codes even on windows consoles that definitely do not support it. This risks shoving garbage to terminal on plain Windows 7 consoles (term does not do this)

It looks like crossterm has a lot of features and control and termcolor is easy to use (and more lightweight).
Both look well supported.

Lookin into Big problem with crossterm is that it has a high Minimum Supported Rust Version (MSRV), which @dpc doesn't like.

Based on my basic tests of a couple versions:

Crossterm Version Minimum Supported Rust Version
0.23 1.56
0.22 1.46
0.20 1.46
0.17 1.46

Looks like it requires 1.46 for a very long way back....

@dpc I guess you'll have to pick your poison 😉

  1. crossterm - lots of features and control, but seems slightly more bloated and recent versions require recent stable
  2. termcolor - much less control, easier to use, has above issues, maintained by BurntSuhi (the ripgrep/regex guy)
  3. term - old library in maintenance mode
  4. yansi - looks extremely unix focused. Windows appears to be an afterthought.

@dpc
Copy link
Collaborator

dpc commented Feb 10, 2022

I don't really see a reason to do anything about it immediately. If it works, it will keep working. Lack of maintenance is not a big deal on it's own.

We probably use most basic functions and any of the alternatives would work OK, so whoever implements it, is free to choose. I could imagine even having support for all of them in form of cargo features if anyone is interested in supporting the alternative, and would like to put the effort.

@Techcable Techcable added P-low Priority: Low slog-term crate: slog-term labels Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-low Priority: Low slog-term crate: slog-term
Projects
None yet
Development

No branches or pull requests

4 participants