Expand description
§use-platform
Primitive platform identity vocabulary.
use-platform stores target-triple-like platform identity as plain data. It does not detect the current platform, call std::env::consts, normalize every possible target triple, or replace target-triple crates.
use use_platform::{Platform, PlatformTriple};
let triple = PlatformTriple::new("aarch64-apple-darwin").unwrap();
let platform = Platform::new(triple);
assert_eq!(platform.to_string(), "aarch64-apple-darwin");Structs§
- Platform
- A plain platform identity value backed by a platform triple.
- Platform
Triple - A plain, owned platform triple value.
Enums§
- Platform
Triple Error - Errors returned while constructing platform vocabulary.