File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ evcxr = []
30
30
win_crlf = []
31
31
# This feature is inentionally opt-out (enabled by default) not to break older clients,
32
32
# although it may become no-op with a MSRV bummp (which is considered a minor change) and removed with a major update
33
- # TODO: make this feature no-op once MSRV is at least `1.70`
34
33
legacy-is-terminal = [" is-terminal" ]
35
34
36
35
[[bin ]]
@@ -45,6 +44,9 @@ name = "prettytable"
45
44
unicode-width = " 0.1"
46
45
term = " 0.7"
47
46
lazy_static = " 1.4"
48
- is-terminal = { version = " 0.4" , optional = true }
49
47
encode_unicode = " 1.0"
50
48
csv = { version = " 1.1" , optional = true }
49
+
50
+ # TODO: remove it once MSRV is at least `1.70`
51
+ [target .'cfg(not(prettytable_is_terminal_implementation = "std"))' .dependencies ]
52
+ is-terminal = { version = " 0.4" , optional = true }
Original file line number Diff line number Diff line change @@ -194,9 +194,9 @@ impl<'a> TableSlice<'a> {
194
194
/// # Returns
195
195
/// A `Result` holding the number of lines printed, or an `io::Error` if any failure happens
196
196
pub fn print_tty ( & self , force_colorize : bool ) -> Result < usize , Error > {
197
- #[ cfg( not ( feature = "legacy-is-terminal" ) ) ]
197
+ #[ cfg( prettytable_is_terminal_implementation = "std" ) ]
198
198
use std:: io:: IsTerminal ;
199
- #[ cfg( feature = "legacy-is-terminal" ) ]
199
+ #[ cfg( not ( prettytable_is_terminal_implementation = "std" ) ) ]
200
200
use is_terminal:: IsTerminal ;
201
201
202
202
match ( stdout ( ) , io:: stdout ( ) . is_terminal ( ) || force_colorize) {
You can’t perform that action at this time.
0 commit comments