Re-exportsΒ§
use std::iter::TrustedLen;πExperimental use std::path::Path;πuse std::path::PathBuf;πuse std::sync::Arc;πuse std::sync::OnceLock;πuse std::io;πuse std::mem;πpub(super) use cstore_impl::provide;πuse rustc_ast as ast;πuse rustc_attr_ir::CanonicalSymbols;πuse rustc_attr_ir::diagnostic_items::DiagnosticItems;πuse rustc_crate_store::CrateSource;πuse rustc_crate_store::ExternCrate;πuse rustc_data_structures::fingerprint::Fingerprint;πuse rustc_data_structures::fx::FxIndexMap;πuse rustc_data_structures::owned_slice::OwnedSlice;πuse rustc_data_structures::sync::Lock;πuse rustc_data_structures::unhash::UnhashMap;πuse rustc_expand::base::SyntaxExtension;πuse rustc_expand::base::SyntaxExtensionKind;πuse rustc_expand::proc_macro::AttrProcMacro;πuse rustc_expand::proc_macro::BangProcMacro;πuse rustc_expand::proc_macro::DeriveProcMacro;πuse rustc_hir::Safety;πuse rustc_hir::def::Res;πuse rustc_hir::def_id::CRATE_DEF_INDEX;πuse rustc_hir::def_id::LOCAL_CRATE;πuse rustc_hir::definitions::DefPath;πuse rustc_hir::definitions::DefPathData;πuse rustc_index::Idx;πuse rustc_middle::middle::lib_features::LibFeatures;πuse rustc_middle::mir::interpret::AllocDecodingSession;πuse rustc_middle::mir::interpret::AllocDecodingState;πuse rustc_middle::ty::codec::TyDecoder;πuse rustc_middle::ty::codec::forward_all_decoder_methods_to;πuse rustc_middle::ty::RestrictionKind;πuse rustc_middle::ty::Visibility;πuse rustc_proc_macro::bridge::client::Client as ProcMacroClient;πExperimental use rustc_serialize::opaque::MemDecoder;πuse rustc_serialize::Decodable;πuse rustc_serialize::Decoder;πuse rustc_session::config::TargetModifier;πuse rustc_session::config::mitigation_coverage::DeniedPartialMitigation;πuse rustc_span::def_id::ModId;πuse rustc_span::hygiene::HygieneDecodeContext;πuse rustc_span::BlobDecoder;πuse rustc_span::BytePos;πuse rustc_span::ByteSymbol;πuse rustc_span::DUMMY_SP;πuse rustc_span::Pos;πuse rustc_span::RemapPathScopeComponents;πuse rustc_span::SpanData;πuse rustc_span::SpanDecoder;πuse rustc_span::Symbol;πuse rustc_span::SyntaxContext;πuse rustc_span::bug;πuse rustc_span::kw;πuse tracing::debug;πuse crate::creader::CStore;πuse crate::eii::EiiMapEncodedKeyValue;πuse crate::rmeta::remapped_def_id::RemappedRawDefId;πuse crate::rmeta::table::IsDefault;πuse crate::rmeta::*;π
ModulesΒ§
- cstore_
impl π
StructsΒ§
- Blob
Decode πContext - Decode context used when we just have a blob of metadata from which we have to decode a header
and
CrateRoot. After that,MetadataDecodeContextcan be used. Most notably, [BlobDecodeContext]doesnβt implementSpanDecoder - Crate
Metadata π - Decode
Iterator π - Imported
Source πFile - Holds information about a rustc_span::SourceFile imported from another crate.
See
imported_source_file()for more information. - Metadata
Blob π - A reference to the raw binary version of crate metadata.
This struct applies
MemDecoderβs validation when constructed so that later constructions are guaranteed to succeed. - Metadata
Decode πContext - This is the decode context used when crate metadata was already read.
Decoding of some types, like
Spanrequire some information to already been read. Can be constructed from aTyCtxtandCrateMetadata(see impls of theMetaDecodertrait).
TraitsΒ§
- Lazy
Decoder π - This trait abstracts over decoders that can decode lazy values using
LazyState: - Meta
Blob π - Meta
Decoder π
Type AliasesΒ§
- Crate
NumMap π - A map from external crate numbers (as decoded from some crate file) to local crate numbers (as generated during this session). Each external crate may refer to types in other external crates, and each has their own crate numbers.
- Denied
Partial πMitigations - The set of mitigations that cannot be partially enabled (see RFC 3855), but are currently enabled for this crate.
- Target
Modifiers π - Target modifiers - abi or exploit mitigations options that may cause unsoundness when mixed or partially enabled.