15 releases (breaking)
✓ Uses Rust 2018 edition
|0.10.0||Nov 19, 2019|
|0.8.1||Sep 5, 2019|
|0.4.0||Mar 26, 2019|
|0.2.0||Nov 7, 2018|
|0.0.3||Jul 13, 2018|
#8 in No standard library
21,563 downloads per month
Used in 113 crates (44 directly)
This is a library for managing targets for compilers and related tools.
Currently, the main feature is support for decoding "triples", which
are strings that identify a particular target configuration. They're named
"triples" because historically they contained three fields, though over time
they've added additional fields. This library provides a
containing enums for each of fields of a triple.
fmt::Display so it can be converted to and from the
conventional string representation of a triple.
Triple also has functions for querying a triple's endianness,
pointer bit width, and binary format.
Triple and the enum types have
host() constructors, for targeting
It supports all triples currently used by rustc and rustup.
It does not support reading JSON target files itself. To use it with a JSON
target file, construct a
Triple using the value of the "llvm-target" field.
Target triple support.