@@ -1294,37 +1294,47 @@ impl Drop for MemoryMap {
1294
1294
/// Various useful system-specific constants.
1295
1295
pub mod consts {
1296
1296
#[ cfg( unix) ]
1297
- pub use os:: consts:: unix:: * ;
1297
+ pub use os:: consts:: unix:: FAMILY ;
1298
1298
1299
1299
#[ cfg( windows) ]
1300
- pub use os:: consts:: windows:: * ;
1300
+ pub use os:: consts:: windows:: FAMILY ;
1301
1301
1302
1302
#[ cfg( target_os = "macos" ) ]
1303
- pub use os:: consts:: macos:: * ;
1303
+ pub use os:: consts:: macos:: { SYSNAME , DLL_PREFIX , DLL_SUFFIX , DLL_EXTENSION } ;
1304
+ #[ cfg( target_os = "macos" ) ]
1305
+ pub use os:: consts:: macos:: { EXE_SUFFIX , EXE_EXTENSION } ;
1304
1306
1305
1307
#[ cfg( target_os = "freebsd" ) ]
1306
- pub use os:: consts:: freebsd:: * ;
1308
+ pub use os:: consts:: freebsd:: { SYSNAME , DLL_PREFIX , DLL_SUFFIX , DLL_EXTENSION } ;
1309
+ #[ cfg( target_os = "freebsd" ) ]
1310
+ pub use os:: consts:: freebsd:: { EXE_SUFFIX , EXE_EXTENSION } ;
1307
1311
1308
1312
#[ cfg( target_os = "linux" ) ]
1309
- pub use os:: consts:: linux:: * ;
1313
+ pub use os:: consts:: linux:: { SYSNAME , DLL_PREFIX , DLL_SUFFIX , DLL_EXTENSION } ;
1314
+ #[ cfg( target_os = "linux" ) ]
1315
+ pub use os:: consts:: linux:: { EXE_SUFFIX , EXE_EXTENSION } ;
1310
1316
1311
1317
#[ cfg( target_os = "android" ) ]
1312
- pub use os:: consts:: android:: * ;
1318
+ pub use os:: consts:: android:: { SYSNAME , DLL_PREFIX , DLL_SUFFIX , DLL_EXTENSION } ;
1319
+ #[ cfg( target_os = "android" ) ]
1320
+ pub use os:: consts:: android:: { EXE_SUFFIX , EXE_EXTENSION } ;
1313
1321
1314
1322
#[ cfg( target_os = "win32" ) ]
1315
- pub use os:: consts:: win32:: * ;
1323
+ pub use os:: consts:: win32:: { SYSNAME , DLL_PREFIX , DLL_SUFFIX , DLL_EXTENSION } ;
1324
+ #[ cfg( target_os = "win32" ) ]
1325
+ pub use os:: consts:: win32:: { EXE_SUFFIX , EXE_EXTENSION } ;
1316
1326
1317
1327
#[ cfg( target_arch = "x86" ) ]
1318
- pub use os:: consts:: x86:: * ;
1328
+ pub use os:: consts:: x86:: { ARCH } ;
1319
1329
1320
1330
#[ cfg( target_arch = "x86_64" ) ]
1321
- pub use os:: consts:: x86_64:: * ;
1331
+ pub use os:: consts:: x86_64:: { ARCH } ;
1322
1332
1323
1333
#[ cfg( target_arch = "arm" ) ]
1324
- pub use os:: consts:: arm:: * ;
1334
+ pub use os:: consts:: arm:: { ARCH } ;
1325
1335
1326
1336
#[ cfg( target_arch = "mips" ) ]
1327
- pub use os:: consts:: mips:: * ;
1337
+ pub use os:: consts:: mips:: { ARCH } ;
1328
1338
1329
1339
/// Constants for Unix systems.
1330
1340
pub mod unix {
0 commit comments