Sha256: 49a579845450b7b020ed5c97dca142fc548725893cbc82f6f750ee0caab2beca
Contents?: true
Size: 405 Bytes
Versions: 38
Compression:
Stored size: 405 Bytes
Contents
extern crate target_lexicon; use core::str::FromStr; use target_lexicon::{Triple, HOST}; fn main() { println!("The host triple is {}.", HOST); let e = Triple::from_str("riscv32-unknown-unknown") .expect("expected to recognize the RISC-V target") .endianness() .expect("expected to know the endianness of RISC-V"); println!("The endianness of RISC-V is {:?}.", e); }
Version data entries
38 entries across 38 versions & 1 rubygems