diff --git a/Cargo.toml b/Cargo.toml index 8337bdf5..513b9413 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,7 @@ members = [ "coordinator/tributary", "coordinator", + "substrate/tree-cleanup/is-terminal", "substrate/tree-cleanup/option-ext", "substrate/tree-cleanup/directories-next", "substrate/tree-cleanup/bandersnatch_vrfs", @@ -102,6 +103,9 @@ lazy_static = { git = "https://github.com/rust-lang-nursery/lazy-static.rs", rev sp-core-hashing = { git = "https://github.com/serai-dex/polkadot-sdk", branch = "experimental" } sp-std = { git = "https://github.com/serai-dex/polkadot-sdk", branch = "experimental" } +# is-terminal now has an std-based solution with an equivalent API +is-terminal = { path = "substrate/tree-cleanup/is-terminal" } + # directories-next was created because directories was unmaintained # directories-next is now unmaintained while directories is maintained # The directories author pulls in ridiculously pointless crates and prefers diff --git a/substrate/tree-cleanup/is-terminal/Cargo.toml b/substrate/tree-cleanup/is-terminal/Cargo.toml new file mode 100644 index 00000000..d24e2173 --- /dev/null +++ b/substrate/tree-cleanup/is-terminal/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "is-terminal" +version = "0.4.9" +description = "is-termiunal written around std::io::IsTerminal" +license = "MIT" +repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tree-cleanup/is-terminal" +authors = ["Luke Parker "] +keywords = [] +edition = "2021" +rust-version = "1.70" + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] diff --git a/substrate/tree-cleanup/is-terminal/src/lib.rs b/substrate/tree-cleanup/is-terminal/src/lib.rs new file mode 100644 index 00000000..e3ad95c2 --- /dev/null +++ b/substrate/tree-cleanup/is-terminal/src/lib.rs @@ -0,0 +1 @@ +pub use std::io::IsTerminal;