platforms 4.0.0

Rust platform registry with information about valid Rust platforms (target triple, target_arch, target_os) sourced from the Rust compiler.
Documentation
//! 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.

#![no_std]
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustSec/logos/main/rustsec-logo-lg.png")]
#![forbid(unsafe_code)]
#![warn(missing_docs, unused_qualifications, rust_2018_idioms)]

#[cfg(feature = "std")]
extern crate std;

pub(crate) mod error;
pub use error::Error;

mod platform;
#[cfg(feature = "std")]
pub use platform::PlatformReq;
pub use platform::{Platform, Tier};

mod target;
pub use target::{Arch, Endian, Env, Os, PointerWidth};