From d19c106414041d46f28302a37c534072792d0b55 Mon Sep 17 00:00:00 2001 From: AdityaProCoder <83160620+AdityaProCoder@users.noreply.github.com> Date: Mon, 19 Oct 2026 10:55:37 +0530 Subject: [PATCH] Add a glossary entry for "target" The term *target* is used throughout the reference, including in the glossary itself ("target platform"), but it was never defined. Add an entry that says what a target is, points out the properties the language defines in terms of it, and repeats the authoring guideline that the reference does not document which targets exist or the properties of a particular target. --- src/glossary.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/glossary.md b/src/glossary.md index 24f9bd3d0d..fc04435f07 100644 --- a/src/glossary.md +++ b/src/glossary.md @@ -227,6 +227,14 @@ A string slice is the most primitive string type in Rust, written as `str`. It i Strings slices are always valid UTF-8. +### Target + +A *target* is the platform that the compiler produces code for: the combination of CPU architecture, operating system, and ABI that the compiled program will run on, usually identified by a target triple such as `x86_64-unknown-linux-gnu`. + +Several parts of the language are defined in terms of the target rather than in absolute terms, such as the size of `usize`, or the values of the `target_*` [conditional compilation] keys. The reference documents those properties as properties of the target, but it does not document which targets exist, nor the properties of any particular target. + +[conditional compilation]: conditional-compilation.md + ### Trait A trait is a language item that is used for describing the functionalities a type must provide. It allows a type to make certain promises about its behavior.