#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

#161 in #target

Download history 1603/week @ 2023-12-09 1138/week @ 2023-12-16 417/week @ 2023-12-23 701/week @ 2023-12-30 1527/week @ 2024-01-06 1961/week @ 2024-01-13 2243/week @ 2024-01-20 2684/week @ 2024-01-27 2479/week @ 2024-02-03 1340/week @ 2024-02-10 2286/week @ 2024-02-17 2051/week @ 2024-02-24 2261/week @ 2024-03-02 2137/week @ 2024-03-09 2476/week @ 2024-03-16 2447/week @ 2024-03-23

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