Registry / utility / platforms

platforms

JSON →
library3.11.0rscratesunverified

Rust platform registry with information about valid Rust platforms (target triple, target_arch, target_os) sourced from the Rust compiler.

# Cargo.toml [dependencies] platforms = "3.11.0"
INSTALL
IMPORT
SIG · PLATFORMS
P
platforms
utilityrustv3.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Platform
use platforms::Platform;

Get information about the current Rust target platform.

use platforms::Platform; fn main() { let platform = Platform::guess_current().unwrap(); println!("Current platform: {:?}", platform); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
platforms — cargo add platforms · libregistry