]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | //! # `object` |
2 | //! | |
3 | //! The `object` crate provides a unified interface to working with object files | |
4 | //! across platforms. It supports reading object files and executable files, | |
5 | //! and writing object files. | |
6 | //! | |
7 | //! See the [`File` struct](./read/struct.File.html) for details. | |
8 | ||
9 | #![deny(missing_docs)] | |
10 | #![deny(missing_debug_implementations)] | |
11 | #![no_std] | |
12 | ||
13 | #[cfg(feature = "cargo-all")] | |
14 | compile_error!("'--all-features' is not supported; use '--features all' instead"); | |
15 | ||
16 | #[allow(unused_imports)] | |
17 | #[macro_use] | |
18 | extern crate alloc; | |
19 | ||
20 | #[cfg(feature = "std")] | |
21 | #[allow(unused_imports)] | |
22 | #[macro_use] | |
23 | extern crate std; | |
24 | ||
25 | mod common; | |
26 | pub use common::*; | |
27 | ||
28 | #[macro_use] | |
29 | pub mod endian; | |
30 | pub use endian::*; | |
31 | ||
32 | #[macro_use] | |
33 | pub mod pod; | |
34 | pub use pod::*; | |
35 | ||
36 | #[cfg(feature = "read_core")] | |
37 | pub mod read; | |
38 | #[cfg(feature = "read_core")] | |
39 | pub use read::*; | |
40 | ||
41 | #[cfg(feature = "write_core")] | |
42 | pub mod write; | |
43 | ||
44 | #[cfg(feature = "elf")] | |
45 | pub mod elf; | |
46 | #[cfg(feature = "macho")] | |
47 | pub mod macho; | |
48 | #[cfg(any(feature = "coff", feature = "pe"))] | |
49 | pub mod pe; |