Module platforms::target [−][src]
Expand description
Target cfg
attributes. Documented in the “Conditional compilation” section
of the Rust reference:
https://doc.rust-lang.org/reference/attributes.html#conditional-compilation
Enums
target_arch
: Target CPU architecture
target_env
: target enviroment that disambiguates the target platform by ABI / libc.
This value is closely related to the fourth element of the platform target triple,
though it is not identical. For example, embedded ABIs such as gnueabihf
will simply
define target_env
as "gnu"
(i.e. target::Env::GNU
)
target_os
: Operating system of the target. This value is closely related to the second
and third element of the platform target triple, though it is not identical.
Constants
target_arch
when building this crate: x86
target_env
when building this crate: gnu
target_os
when building this crate: linux