1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#![no_std]
#![doc(html_root_url = "https://docs.rs/platforms/1.0.1")]
#![forbid(unsafe_code)]
#![warn(missing_docs, unused_qualifications, rust_2018_idioms)]
#[cfg(feature = "std")]
extern crate std;
pub(crate) mod error;
pub mod platform;
pub mod target;
pub use crate::{
error::Error,
platform::{Platform, Tier},
target::{TARGET_ARCH, TARGET_ENV, TARGET_OS},
};
#[cfg(feature = "std")]
pub use crate::platform::PlatformReq;