use-platform 0.1.0

Primitive platform identity and target triple vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    11 out of 11 items documented1 out of 10 items with examples
  • Size
  • Source code size: 6.83 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 505.22 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-os
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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");