#build-target #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

#1208 in Configuration

Download history 3218/week @ 2025-09-11 2163/week @ 2025-09-18 2467/week @ 2025-09-25 2128/week @ 2025-10-02 1852/week @ 2025-10-09 2508/week @ 2025-10-16 1718/week @ 2025-10-23 2308/week @ 2025-10-30 2893/week @ 2025-11-06 1603/week @ 2025-11-13 3406/week @ 2025-11-20 1889/week @ 2025-11-27 1833/week @ 2025-12-04 1266/week @ 2025-12-11 1289/week @ 2025-12-18 1351/week @ 2025-12-25

5,916 downloads per month
Used in 4 crates (3 directly)

2KB

Get information concerning the build target.


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());

No runtime deps