@@ -5,7 +5,7 @@ use alloc::vec::Vec;
55use core:: { fmt, result} ;
66
77use crate :: common:: * ;
8- use crate :: { ByteString , Endianness } ;
8+ use crate :: ByteString ;
99
1010mod read_ref;
1111pub use read_ref:: * ;
@@ -18,7 +18,21 @@ pub use read_cache::*;
1818mod util;
1919pub use util:: StringTable ;
2020
21+ #[ cfg( any(
22+ feature = "coff" ,
23+ feature = "elf" ,
24+ feature = "macho" ,
25+ feature = "pe" ,
26+ feature = "wasm"
27+ ) ) ]
2128mod any;
29+ #[ cfg( any(
30+ feature = "coff" ,
31+ feature = "elf" ,
32+ feature = "macho" ,
33+ feature = "pe" ,
34+ feature = "wasm"
35+ ) ) ]
2236pub use any:: * ;
2337
2438#[ cfg( feature = "archive" ) ]
@@ -86,7 +100,7 @@ impl<T> ReadError<T> for Option<T> {
86100 target_pointer_width = "32" ,
87101 feature = "elf"
88102) ) ]
89- pub type NativeFile < ' data , R = & ' data [ u8 ] > = elf:: ElfFile32 < ' data , Endianness , R > ;
103+ pub type NativeFile < ' data , R = & ' data [ u8 ] > = elf:: ElfFile32 < ' data , crate :: Endianness , R > ;
90104
91105/// The native executable file for the target platform.
92106#[ cfg( all(
@@ -95,15 +109,15 @@ pub type NativeFile<'data, R = &'data [u8]> = elf::ElfFile32<'data, Endianness,
95109 target_pointer_width = "64" ,
96110 feature = "elf"
97111) ) ]
98- pub type NativeFile < ' data , R = & ' data [ u8 ] > = elf:: ElfFile64 < ' data , Endianness , R > ;
112+ pub type NativeFile < ' data , R = & ' data [ u8 ] > = elf:: ElfFile64 < ' data , crate :: Endianness , R > ;
99113
100114/// The native executable file for the target platform.
101115#[ cfg( all( target_os = "macos" , target_pointer_width = "32" , feature = "macho" ) ) ]
102- pub type NativeFile < ' data , R = & ' data [ u8 ] > = macho:: MachOFile32 < ' data , Endianness , R > ;
116+ pub type NativeFile < ' data , R = & ' data [ u8 ] > = macho:: MachOFile32 < ' data , crate :: Endianness , R > ;
103117
104118/// The native executable file for the target platform.
105119#[ cfg( all( target_os = "macos" , target_pointer_width = "64" , feature = "macho" ) ) ]
106- pub type NativeFile < ' data , R = & ' data [ u8 ] > = macho:: MachOFile64 < ' data , Endianness , R > ;
120+ pub type NativeFile < ' data , R = & ' data [ u8 ] > = macho:: MachOFile64 < ' data , crate :: Endianness , R > ;
107121
108122/// The native executable file for the target platform.
109123#[ cfg( all( target_os = "windows" , target_pointer_width = "32" , feature = "pe" ) ) ]
0 commit comments