use-architecture 0.1.0

Primitive CPU and target architecture vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    14 out of 14 items documented1 out of 3 items with examples
  • Size
  • Source code size: 7.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 421.19 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-architecture

Primitive CPU and target architecture vocabulary.

use-architecture models architecture names as data. It does not detect the current architecture, model CPU features, or replace target-feature crates.

use use_architecture::Architecture;

let architecture: Architecture = "arm64".parse().unwrap();

assert_eq!(architecture, Architecture::Aarch64);
assert_eq!(architecture.to_string(), "aarch64");