Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

chore: replace atty with is-terminal #21

Merged
merged 1 commit into from Nov 24, 2022

Conversation

jcgruenhage
Copy link
Contributor

atty is unmaintained and has a potential unaligned read. See https://github.com/rustsec/advisory-db/blob/main/crates/atty/RUSTSEC-2021-0145.md.

is-terminal is a replacement based on atty, with the soundness issue fixed and an (IMO) nicer to use API, mirroring what's available in the std lib on nightly with std::io::IsTerminal.

This is a follow-up on clap-rs/clap#4249, to finish replacing atty in the context of clap.

@epage epage merged commit 1043ddc into rust-cli:main Nov 24, 2022
@jcgruenhage jcgruenhage deleted the replace-atty-with-is-terminal branch November 24, 2022 22:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants