Skip to content

Commit a98b740

Browse files
committed
chore(deps): Replace is-terminal crate with stdlib
The functionality from the is-terminal crate was lifted into the standard library. Since we recently bumped the Rust MSRV, we can now rely on it and remove a dependency.
1 parent 5e8c0c7 commit a98b740

File tree

21 files changed

+24
-30
lines changed

21 files changed

+24
-30
lines changed

Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cli-compiler/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ wasmer-compiler = { version = "=6.1.0", path = "../compiler", features = [
2424
"compiler",
2525
] }
2626
wasmer-types = { version = "=6.1.0", path = "../types", features = ["detect-wasm-features"] }
27-
is-terminal = "0.4.7"
2827
colored = "2.0"
2928
anyhow.workspace = true
3029
# For the function names autosuggestion

lib/cli-compiler/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Utility functions for the WebAssembly module
22
use anyhow::{Context, Result, bail};
3-
use is_terminal::IsTerminal;
3+
use std::io::IsTerminal as _;
44
use std::path::PathBuf;
55
use std::{env, path::Path};
66

lib/cli/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ time01 = { package = "time", version = "0.1.45", optional = true }
159159
# Third-party dependencies.
160160

161161
http.workspace = true
162-
is-terminal = "0.4.7"
163162
colored = "2.0"
164163
anyhow.workspace = true
165164
bytesize.workspace = true

lib/cli/src/commands/app/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use colored::Colorize;
1313
use dialoguer::{Confirm, Select, theme::ColorfulTheme};
1414
use futures::stream::TryStreamExt;
1515
use indexmap::IndexMap;
16-
use is_terminal::IsTerminal;
1716
use path_clean::PathClean;
17+
use std::io::IsTerminal as _;
1818
use wasmer_backend_api::{
1919
WasmerClient,
2020
types::{AppTemplate, TemplateLanguage},

lib/cli/src/commands/app/delete.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Delete an Edge app.
22
33
use dialoguer::Confirm;
4-
use is_terminal::IsTerminal;
4+
use std::io::IsTerminal as _;
55

66
use super::util::AppIdentOpts;
77
use crate::{commands::AsyncCliCommand, config::WasmerEnv};

lib/cli/src/commands/app/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use bytesize::ByteSize;
1414
use colored::Colorize;
1515
use dialoguer::{Confirm, theme::ColorfulTheme};
1616
use indexmap::IndexMap;
17-
use is_terminal::IsTerminal;
17+
use std::io::IsTerminal as _;
1818
use std::io::Write;
1919
use std::{path::Path, path::PathBuf, str::FromStr, time::Duration};
2020
use wasmer_backend_api::{

lib/cli/src/commands/app/regions/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{commands::AsyncCliCommand, config::WasmerEnv, opts::ListFormatOpts};
2-
use is_terminal::IsTerminal;
2+
use std::io::IsTerminal as _;
33

44
/// List available Edge regions.
55
#[derive(clap::Parser, Debug)]

lib/cli/src/commands/app/secrets/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
use anyhow::Context;
77
use colored::Colorize;
88
use dialoguer::theme::ColorfulTheme;
9-
use is_terminal::IsTerminal;
9+
use std::io::IsTerminal as _;
1010
use std::{
1111
collections::{HashMap, HashSet},
1212
path::{Path, PathBuf},

lib/cli/src/commands/app/secrets/delete.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{
44
};
55
use colored::Colorize;
66
use dialoguer::theme::ColorfulTheme;
7-
use is_terminal::IsTerminal;
7+
use std::io::IsTerminal as _;
88
use std::path::{Path, PathBuf};
99
use wasmer_backend_api::WasmerClient;
1010

0 commit comments

Comments
 (0)