#target #build #attributes #info #string #information #text

target_info

Get text strings of attributes concernign the build target

1 unstable release

Uses old Rust 2015

0.1.0 Feb 1, 2016

#167 in #target

Download history 3202/week @ 2024-04-15 3354/week @ 2024-04-22 3354/week @ 2024-04-29 4002/week @ 2024-05-06 3607/week @ 2024-05-13 3038/week @ 2024-05-20 3603/week @ 2024-05-27 2146/week @ 2024-06-03 6181/week @ 2024-06-10 3937/week @ 2024-06-17 3046/week @ 2024-06-24 2528/week @ 2024-07-01 2270/week @ 2024-07-08 3858/week @ 2024-07-15 3494/week @ 2024-07-22 2348/week @ 2024-07-29

12,067 downloads per month
Used in 4 crates (3 directly)

2KB

target_info

Super simple library to get stringified versions of the various build target configuration attributes.

Example:

use target_info::Target;
println!("Target is {}-{}-{}", Target::arch(), Target::env(), Target::os());

lib.rs:

Get information concerning the build target.

No runtime deps