Skip to content

Commit

Permalink
feat: IsTerminal in std since v1.70
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Feb 16, 2024
1 parent f16615e commit 186c088
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dns-over-https = ["shadowsocks-service/dns-over-https"]
dns-over-h3 = ["shadowsocks-service/dns-over-h3"]

# Enable logging output
logging = ["log4rs", "tracing", "tracing-subscriber", "is-terminal", "time"]
logging = ["log4rs", "tracing", "tracing-subscriber", "time"]

# Enable DNS-relay
local-dns = ["local", "shadowsocks-service/local-dns"]
Expand Down Expand Up @@ -172,7 +172,6 @@ tracing-subscriber = { version = "0.3", optional = true, features = [
"time",
"local-time",
] }
is-terminal = { version = "0.4.12", optional = true }
time = { version = "0.3", optional = true }

serde = { version = "1.0", features = ["derive"] }
Expand Down
3 changes: 2 additions & 1 deletion src/logging/tracing.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Logging facilities with tracing
use is_terminal::IsTerminal;
use std::io::IsTerminal;

use time::UtcOffset;
use tracing::level_filters::LevelFilter;
use tracing_subscriber::{fmt::time::OffsetTime, EnvFilter, FmtSubscriber};
Expand Down

0 comments on commit 186c088

Please sign in to comment.