Skip to content

Remove dependency on atty and use std::io::IsTerminal instead#693

Merged
sharkdp merged 1 commit intosharkdp:masterfrom
acuteenvy:remove-atty
Oct 18, 2023
Merged

Remove dependency on atty and use std::io::IsTerminal instead#693
sharkdp merged 1 commit intosharkdp:masterfrom
acuteenvy:remove-atty

Conversation

@acuteenvy
Copy link
Contributor

Since the MSRV is now 1.70, the implementation from std can be used instead.

@sharkdp sharkdp merged commit 69ee173 into sharkdp:master Oct 18, 2023
@sharkdp
Copy link
Owner

sharkdp commented Oct 18, 2023

Thank you!

@acuteenvy acuteenvy deleted the remove-atty branch October 18, 2023 21:12
jakelodwick added a commit to jakelodwick/hyperfine that referenced this pull request Mar 14, 2026
The `statistical` crate hasn't been updated since 2019 and depends on
`rand 0.6`, which pulls 25 transitive packages that duplicate
hyperfine's existing `rand 0.8` stack.

hyperfine uses three functions from `statistical`: `mean`, `median`,
and `standard_deviation`. This replaces them with equivalent
implementations in a new `util::stats` module (~20 lines).

All existing tests pass without modification. Similar to sharkdp#693 which
replaced `atty` with `std::io::IsTerminal`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants