Skip to content

Commit

Permalink
chore(deps): remove atty dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Feb 18, 2025
1 parent 4e56926 commit 7614065
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
23 changes: 1 addition & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ edition = "2021"

[workspace.dependencies]
anyhow = "1.0.95"
atty = "0.2.14"
bindgen = "0.71.1"
bzip2 = "0.5.1"
cc = { version = "1.2.14", features = ["parallel"] }
Expand Down
2 changes: 1 addition & 1 deletion tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ description = "Tools and examples built on the RustSAT library"
keywords = ["rustsat", "sat", "satisfiability"]
repository = "https://github.com/chrjabs/rustsat"
readme = "README.md"
rust-version = "1.70.0"
include = ["LICENSE", "CHANGELOG.md", "README.md", "/src/"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow.workspace = true
atty.workspace = true
clap.workspace = true
concolor-clap.workspace = true
itertools.workspace = true
Expand Down
6 changes: 3 additions & 3 deletions tools/src/bin/gbmosplit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use rustsat::{
use std::{
collections::BTreeSet,
fmt,
io::{self, Write},
io::{self, IsTerminal, Write},
path::PathBuf,
};
use termcolor::{Buffer, BufferWriter, Color, ColorSpec, WriteColor};
Expand Down Expand Up @@ -55,7 +55,7 @@ impl Cli {
concolor_clap::ColorChoice::Always => termcolor::ColorChoice::Always,
concolor_clap::ColorChoice::Never => termcolor::ColorChoice::Never,
concolor_clap::ColorChoice::Auto => {
if atty::is(atty::Stream::Stdout) {
if io::stdout().is_terminal() {
termcolor::ColorChoice::Auto
} else {
termcolor::ColorChoice::Never
Expand All @@ -66,7 +66,7 @@ impl Cli {
concolor_clap::ColorChoice::Always => termcolor::ColorChoice::Always,
concolor_clap::ColorChoice::Never => termcolor::ColorChoice::Never,
concolor_clap::ColorChoice::Auto => {
if atty::is(atty::Stream::Stderr) {
if io::stderr().is_terminal() {
termcolor::ColorChoice::Auto
} else {
termcolor::ColorChoice::Never
Expand Down

0 comments on commit 7614065

Please sign in to comment.