summaryrefslogtreecommitdiffstats
path: root/third_party/rust/target-lexicon-0.9.0/examples/host.rs
blob: 055e0bffdbbaee65d8a1fd4c53db10bd61cef361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extern crate target_lexicon;

use target_lexicon::HOST;

fn main() {
    println!(
        "{}",
        HOST.pointer_width()
            .expect("architecture should be known")
            .bytes()
    );
}