]> git.proxmox.com Git - rustc.git/blame - vendor/object/src/lib.rs
New upstream version 1.48.0+dfsg1
[rustc.git] / vendor / object / src / lib.rs
CommitLineData
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")]
14compile_error!("'--all-features' is not supported; use '--features all' instead");
15
16#[allow(unused_imports)]
17#[macro_use]
18extern crate alloc;
19
20#[cfg(feature = "std")]
21#[allow(unused_imports)]
22#[macro_use]
23extern crate std;
24
25mod common;
26pub use common::*;
27
28#[macro_use]
29pub mod endian;
30pub use endian::*;
31
32#[macro_use]
33pub mod pod;
34pub use pod::*;
35
36#[cfg(feature = "read_core")]
37pub mod read;
38#[cfg(feature = "read_core")]
39pub use read::*;
40
41#[cfg(feature = "write_core")]
42pub mod write;
43
44#[cfg(feature = "elf")]
45pub mod elf;
46#[cfg(feature = "macho")]
47pub mod macho;
48#[cfg(any(feature = "coff", feature = "pe"))]
49pub mod pe;