Module cfg_expr::targets

source ·
Expand description

Types related to rustc targets

Structs

The “architecture” field
The “environment” field, which specifies an ABI environment on top of the operating system. In many configurations, this field is omitted, and the environment is implied by the operating system.
A set of families for a target.
Individual target families, which describe a set of targets grouped in some logical manner, typically by operating system. This includes values like unix and windows.
A set of HasAtomic instances a target.
The “operating system” field, which sometimes implies an environment, and sometimes isn’t an actual operating system.
The panic strategy used on this target by default.
Contains information regarding a particular target known to rustc
The unique identifier for a target.
The “vendor” field, which in practice is little more than an arbitrary modifier.

Enums

The endian types known to rustc
Integer size and pointers for which there’s support for atomic functions.

Constants

A list of all of the builtin targets known to rustc, as of 1.54.0

Functions

Attempts to find the TargetInfo for the specified target triple
Retrieves the version of rustc for which the built-in targets were retrieved from. Targets may be added and removed between different rustc versions.