@@ -30,7 +30,7 @@ mod options {
3030}
3131
3232#[ cfg( all(
33- not( feature = "feat_external_libstdbuf" ) ,
33+ not( external_libstdbuf ) ,
3434 any(
3535 target_os = "linux" ,
3636 target_os = "android" ,
@@ -42,10 +42,10 @@ mod options {
4242) ) ]
4343const STDBUF_INJECT : & [ u8 ] = include_bytes ! ( concat!( env!( "OUT_DIR" ) , "/libstdbuf.so" ) ) ;
4444
45- #[ cfg( all( not( feature = "feat_external_libstdbuf" ) , target_vendor = "apple" ) ) ]
45+ #[ cfg( all( not( external_libstdbuf ) , target_vendor = "apple" ) ) ]
4646const STDBUF_INJECT : & [ u8 ] = include_bytes ! ( concat!( env!( "OUT_DIR" ) , "/libstdbuf.dylib" ) ) ;
4747
48- #[ cfg( all( not( feature = "feat_external_libstdbuf" ) , target_os = "cygwin" ) ) ]
48+ #[ cfg( all( not( external_libstdbuf ) , target_os = "cygwin" ) ) ]
4949const STDBUF_INJECT : & [ u8 ] = include_bytes ! ( concat!( env!( "OUT_DIR" ) , "/libstdbuf.dll" ) ) ;
5050
5151enum BufferType {
@@ -158,7 +158,7 @@ fn set_command_env(command: &mut process::Command, buffer_name: &str, buffer_typ
158158 }
159159}
160160
161- #[ cfg( not( feature = "feat_external_libstdbuf" ) ) ]
161+ #[ cfg( not( external_libstdbuf ) ) ]
162162fn get_preload_env ( tmp_dir : & TempDir ) -> UResult < ( String , PathBuf ) > {
163163 use std:: fs:: File ;
164164 use std:: io:: Write ;
@@ -172,7 +172,7 @@ fn get_preload_env(tmp_dir: &TempDir) -> UResult<(String, PathBuf)> {
172172 Ok ( ( preload. to_owned ( ) , inject_path) )
173173}
174174
175- #[ cfg( feature = "feat_external_libstdbuf" ) ]
175+ #[ cfg( external_libstdbuf ) ]
176176fn get_preload_env ( _tmp_dir : & TempDir ) -> UResult < ( String , PathBuf ) > {
177177 let ( preload, extension) = preload_strings ( ) ?;
178178
0 commit comments