Registry / utility / target-info

target-info

JSON →
library0.1.0rscratesunverified

Get text strings of attributes concerning the build target.

# Cargo.toml [dependencies] target_info = "0.1.0"
INSTALL
IMPORT
SIG · TARGET-INFO
T
target-info
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Target
use target_info::Target;

Prints the target OS and architecture strings.

use target_info::Target; fn main() { println!("OS: {}", Target::os()); println!("Arch: {}", Target::arch()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
target-info — cargo add target-info · libregistry