Debian Codegraph @

src/lib.rs

raw symbols SCIP
1 //! Rust platform registry: provides programmatic access to information about valid Rust platforms
2 //!
3 //! This crate provides an interface to the platform data canonically sourced
4 //! from the Rust compiler:
5 //!
6 //! <https://doc.rust-lang.org/nightly/rustc/platform-support.html>
7 //!
8 //! ## Minimum Supported Rust Version
9 //!
10 //! Rust **1.40** or higher.
11 //!
12 //! Minimum supported Rust version can be changed in the future, but it will be
13 //! done with a minor version bump.
14
15 #![no_std]
16 #![doc(html_logo_url = "https://raw.githubusercontent.com/RustSec/logos/main/rustsec-logo-lg.png")]
17 #![forbid(unsafe_code)]
18 #![warn(missing_docs, unused_qualifications, rust_2018_idioms)]
19
20 #[cfg(feature = "std")]
21 extern crate std;
22
23 pub(crate) mod error;
24 pub mod platform;
25 pub mod target;
26
27 pub use crate::{
28 error::Error,
29 platform::{Platform, Tier},
30 target::{Arch, Endian, Env, PointerWidth, OS},
31 };
32
33 #[cfg(feature = "std")]
34 pub use crate::platform::PlatformReq;