#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

#145 in #info

Download history 3494/week @ 2024-07-22 2429/week @ 2024-07-29 1950/week @ 2024-08-05 4967/week @ 2024-08-12 2189/week @ 2024-08-19 2737/week @ 2024-08-26 4128/week @ 2024-09-02 3786/week @ 2024-09-09 2723/week @ 2024-09-16 2312/week @ 2024-09-23 1994/week @ 2024-09-30 1529/week @ 2024-10-07 2897/week @ 2024-10-14 2016/week @ 2024-10-21 2295/week @ 2024-10-28 1877/week @ 2024-11-04

9,149 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