Skip to main content

Module rmeta_link

Module rmeta_link 

Source
Expand description

Late-metadata archive member that lists which rlib entries are Rust object files, and potentially other data collected and used when building or linking a rlib. See https://github.com/rust-lang/rust/issues/138243.

Re-exportsยง

use std::fs::File; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use object::read::archive::ArchiveFile; ๐Ÿ”’
use rustc_data_structures::fx::FxHashMap; ๐Ÿ”’
use rustc_data_structures::memmap::Mmap; ๐Ÿ”’
use rustc_serialize::opaque::mem_encoder::MemEncoder; ๐Ÿ”’
use rustc_serialize::opaque::MAGIC_END_BYTES; ๐Ÿ”’
use rustc_serialize::opaque::MemDecoder; ๐Ÿ”’
use rustc_serialize::Decodable; ๐Ÿ”’
use rustc_serialize::Encodable; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_structures::NativeLibKind; ๐Ÿ”’
use rustc_target::spec::Target; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’
use super::metadata::get_metadata_xcoff; ๐Ÿ”’
use super::metadata::search_for_section; ๐Ÿ”’
use crate::NativeLib; ๐Ÿ”’

Structsยง

RmetaLink
RmetaLinkCache

Constantsยง

FILENAME ๐Ÿ”’
SECTION ๐Ÿ”’

Functionsยง

crate_may_have_bundled_libs ๐Ÿ”’
read
Reads the link-time metadata from an already-parsed archive.
read_from_data
Like read, but parses the archive from raw bytes.
read_from_path ๐Ÿ”’