logo
Expand description

Rust platform registry: provides programmatic access to information about valid Rust platforms

This crate provides an interface to the platform data canonically sourced from the Rust compiler:

https://doc.rust-lang.org/nightly/rustc/platform-support.html

Minimum Supported Rust Version

Rust 1.40 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

Re-exports

pub use crate::platform::Platform;

Modules

Rust platforms

Target cfg attributes. Documented in the “Conditional compilation” section of the Rust reference:

Structs

Error type

Platform requirements: glob-like expressions for matching Rust platforms as identified by a “target triple”, e.g. i686-apple-darwin.

Enums

target_arch: Target CPU architecture

target_endian: Endianness of the target.

target_env: target enviroment that disambiguates the target platform by ABI / libc.

target_os: Operating system of the target.

target_pointer_width: Size of native pointer types (usize, isize) in bits

Rust platform tiers: support levels are organized into three tiers, each with a different set of guarantees.