BuiltCrateData

Type Alias BuiltCrateData 

Source
pub type BuiltCrateData = CrateData<Crate>;

Aliased Type§

pub struct BuiltCrateData {
    pub root_file_id: FileId,
    pub edition: Edition,
    pub dependencies: Vec<Dependency<Crate>>,
    pub origin: CrateOrigin,
    pub is_proc_macro: bool,
    pub proc_macro_cwd: Arc<AbsPathBuf>,
}

Fields§

§root_file_id: FileId§edition: Edition§dependencies: Vec<Dependency<Crate>>

The dependencies of this crate.

Note that this may contain more dependencies than the crate actually uses. A common example is the test crate which is included but only actually is active when declared in source via extern crate test.

§origin: CrateOrigin§is_proc_macro: bool§proc_macro_cwd: Arc<AbsPathBuf>

The working directory to run proc-macros in invoked in the context of this crate. This is the workspace root of the cargo workspace for workspace members, the crate manifest dir otherwise.

Implementations§