Skip to main content

Module cstore

Module cstore 

Source
Expand description

the rustc crate store interface. This also includes types that are mostly used as a part of that interface, but these should probably get a better home if someone can find one.

Re-exportsยง

use std::any::Any; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::sync::OnceLock; ๐Ÿ”’
use rustc_abi::ExternAbi; ๐Ÿ”’
use rustc_attr_ir::CfgEntry; ๐Ÿ”’
use rustc_attr_ir::PeImportNameType; ๐Ÿ”’
use rustc_data_structures::svh::Svh; ๐Ÿ”’
use rustc_data_structures::sync; ๐Ÿ”’
use rustc_data_structures::sync::AppendOnlyIndexVec; ๐Ÿ”’
use rustc_data_structures::sync::FreezeLock; ๐Ÿ”’
use rustc_hir_id::definitions::DefKey; ๐Ÿ”’
use rustc_hir_id::definitions::DefPath; ๐Ÿ”’
use rustc_hir_id::definitions::Definitions; ๐Ÿ”’
use rustc_macros::BlobDecodable; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_span::def_id::CrateNum; ๐Ÿ”’
use rustc_span::def_id::DefId; ๐Ÿ”’
use rustc_span::def_id::DefPathHash; ๐Ÿ”’
use rustc_span::def_id::LOCAL_CRATE; ๐Ÿ”’
use rustc_span::def_id::LocalDefId; ๐Ÿ”’
use rustc_span::def_id::StableCrateId; ๐Ÿ”’
use rustc_span::def_id::StableCrateIdMap; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_structures::NativeLibKind; ๐Ÿ”’

Structsยง

CrateSource
Where a crate came from on the local filesystem. One of these three options must be non-None.
DllImport
ExternCrate
ForeignModule
NativeLib
Untracked

Enumsยง

CrateDepKind
DllCallingConvention
Calling convention for a function defined in an external library.
DllImportSymbolType
ExternCrateSource
LinkagePreference

Traitsยง

CrateStore
A store of Rust crates, through which their metadata can be accessed.

Type Aliasesยง

CrateStoreDyn