//! # `object` //! //! The `object` crate provides a unified interface to working with object files //! across platforms. It supports reading relocatable object files and executable files, //! and writing relocatable object files and some executable files. //! //! ## Raw struct definitions //! //! Raw structs are defined for: [ELF](elf), [Mach-O](macho), [PE/COFF](pe), //! [XCOFF](xcoff), [archive]. //! Types and traits for zerocopy support are defined in the [`pod`] and [`endian`] modules. //! //! ## Unified read API //! //! The [`read`] module provides a unified read API using the [`read::Object`] trait. //! There is an implementation of this trait for [`read::File`], which allows reading any //! file format, as well as implementations for each file format. //! //! ## Low level read API //! //! The [`read#modules`] submodules define helpers that operate on the raw structs. //! These can be used instead of the unified API, or in conjunction with it to access //! details that are not available via the unified API. //! //! ## Unified write API //! //! The [`mod@write`] module provides a unified write API for relocatable object files //! using [`write::Object`]. This does not support writing executable files. //! //! ## Low level write API //! //! The [`mod@write#modules`] submodules define helpers for writing the raw structs. //! //! ## Build API //! //! The [`mod@build`] submodules define helpers for building object files, either from //! scratch or by modifying existing files. //! //! ## Shared definitions //! //! The crate provides a number of definitions that are used by both the read and write //! APIs. These are defined at the top level module, but none of these are the main entry //! points of the crate.
#![deny(missing_docs)] #![deny(missing_debug_implementations)] #![no_std] #![warn(rust_2018_idioms)] // Style. #![allow(clippy::collapsible_else_if)] #![allow(clippy::collapsible_if)] #![allow(clippy::collapsible_match)] #![allow(clippy::comparison_chain)] #![allow(clippy::field_reassign_with_default)] #![allow(clippy::manual_flatten)] #![allow(clippy::match_like_matches_macro)] #![allow(clippy::single_match)] #![allow(clippy::type_complexity)] // Occurs due to fallible iteration. #![allow(clippy::should_implement_trait)] // Unit errors are converted to other types by callers. #![allow(clippy::result_unit_err)]
#[cfg(feature = "cargo-all")]
compile_error!("'--all-features' is not supported; use '--features all' instead");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.