Rust platforms
crate
Rust platform registry: provides programmatic access to information about valid Rust platforms, sourced from the Rust compiler.
About
This crate provides programmatic access to information about valid Rust platforms. This is useful for systems which document/inventory information relevant to Rust platforms.
It was created for the RustSec Advisory Database and is maintained by the Rust Secure Code Working Group.
It is not intended to be a tool for gating builds based on the current platform or as a replacement for Rust's existing conditional compilation features: please use those for build purposes.
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.
Registered Platforms
Tier 1
target triple | target_arch | target_os | target_env |
---|---|---|---|
i686-apple-darwin | x86 | macos | "" |
i686-pc-windows-gnu | x86 | windows | gnu |
i686-pc-windows-msvc | x86 | windows | msvc |
i686-unknown-linux-gnu | x86 | linux | gnu |
x86_64-apple-darwin | x86_64 | macos | "" |
x86_64-pc-windows-gnu | x86_64 | windows | gnu |
x86_64-pc-windows-msvc | x86_64 | windows | msvc |
x86_64-unknown-linux-gnu | x86_64 | linux | gnu |
Tier 2
Tier 3
target triple | target_arch | target_os | target_env |
---|---|---|---|
i686-unknown-haiku | x86 | haiku | "" |
i686-unknown-netbsd | x86 | netbsd | "" |
mips-unknown-linux-uclibc | mips | linux | uclibc |
mipsel-unknown-linux-uclibc | mips | linux | uclibc |
msp430-none-elf | msp430 | unknown | "" |
sparc64-unknown-netbsd | sparc64 | netbsd | "" |
thumbv6m-none-eabi | thumbv6 | unknown | "" |
thumbv7em-none-eabi | thumbv7 | unknown | "" |
thumbv7em-none-eabihf | thumbv7 | unknown | "" |
thumbv7m-none-eabi | thumbv7 | unknown | "" |
x86_64-fortanix-unknown-sgx | x86_64 | unknown | sgx |
x86_64-unknown-bitrig | x86_64 | bitrig | "" |
x86_64-unknown-dragonfly | x86_64 | dragonfly | "" |
x86_64-unknown-haiku | x86_64 | haiku | "" |
x86_64-unknown-openbsd | x86_64 | openbsd | "" |
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.