pub struct LinkerIdentity {
pub driver: String,
pub driver_version: String,
pub linker_version: String,
pub crt_objects: BTreeMap<String, CacheDigest>,
pub sdk: Option<String>,
pub deployment_target: Option<String>,
}Expand description
What produced a linked native program, beyond the compiler itself.
The fields are identity rather than content wherever a compiler’s own identity is: a driver’s version output names its toolchain more cheaply than hashing a hundred megabytes of it, and matches how rustc is identified. The CRT objects are hashed, because nothing else pins the libc a link resolves against. Nothing here is placeholder-mapped – these paths are host locations rather than checkout locations, and two hosts that differ should miss rather than share.
Fields§
§driver: StringResolved absolute path of the linker driver rustc will invoke.
driver_version: StringVersion output of that driver.
linker_version: StringVersion of the linker the driver selects.
crt_objects: BTreeMap<String, CacheDigest>Startup objects and libc the driver resolves, by probe name.
sdk: Option<String>Platform SDK identity, where the platform has one.
deployment_target: Option<String>Deployment target the link was made against, where one applies.
Trait Implementations§
Source§impl Clone for LinkerIdentity
impl Clone for LinkerIdentity
Source§fn clone(&self) -> LinkerIdentity
fn clone(&self) -> LinkerIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more