#target #build #info #attributes #information #string #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

#164 in #info

Download history 1850/week @ 2024-11-17 2207/week @ 2024-11-24 3161/week @ 2024-12-01 2275/week @ 2024-12-08 2767/week @ 2024-12-15 1460/week @ 2024-12-22 860/week @ 2024-12-29 2975/week @ 2025-01-05 3411/week @ 2025-01-12 3095/week @ 2025-01-19 2734/week @ 2025-01-26 3408/week @ 2025-02-02 3727/week @ 2025-02-09 2734/week @ 2025-02-16 3276/week @ 2025-02-23 2358/week @ 2025-03-02

12,328 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