diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/target-lexicon-0.9.0/README.md | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/target-lexicon-0.9.0/README.md')
-rw-r--r-- | third_party/rust/target-lexicon-0.9.0/README.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/rust/target-lexicon-0.9.0/README.md b/third_party/rust/target-lexicon-0.9.0/README.md new file mode 100644 index 0000000000..2e539eb716 --- /dev/null +++ b/third_party/rust/target-lexicon-0.9.0/README.md @@ -0,0 +1,20 @@ +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 `Triple` struct +containing enums for each of fields of a triple. `Triple` implements +`FromStr` and `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. + +And, `Triple` and the enum types have `host()` constructors, for targeting +the host. + +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. |