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

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/target-lexicon-0.13.1/examples/misc.rs
wasmtime-28.0.0 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-27.0.0 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-26.0.0 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-25.0.2 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-25.0.1 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-25.0.0 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-24.0.0 ./ext/cargo-vendor/target-lexicon-0.12.16/examples/misc.rs
wasmtime-23.0.2 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-22.0.0 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-21.0.1 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-20.0.2 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-20.0.0 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-18.0.3 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-17.0.1 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-17.0.0 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-16.0.0 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-15.0.1 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-15.0.0 ./ext/cargo-vendor/target-lexicon-0.12.13/examples/misc.rs
wasmtime-14.0.4 ./ext/cargo-vendor/target-lexicon-0.12.12/examples/misc.rs