summaryrefslogtreecommitdiffstats
path: root/docs/config
diff options
context:
space:
mode:
authorKevin Song <chips@ksong.dev>2022-05-04 15:40:44 -0500
committerGitHub <noreply@github.com>2022-05-04 15:40:44 -0500
commit393d62c726573a0e6c351f422dbef4b17a5944bf (patch)
treec1359d4219b2db8e28e65dd3688f91b469ace3c7 /docs/config
parent2bf30dc89fbce6f4da37657b8af6077f15a543d0 (diff)
feat(rust): Display toolchain names (#3414)
This is an actualization of PR #559 as originally envisioned by qryxip. Adds the ability to display toolchain versions, either as extracted from environment/settings files or by getting the host triple. As part of this, several other major changes were needed: - Many of the smaller functions within the code have been fused, moved, or dropped. - The Rustup environmental info is now initialized lazily using OnceCells. This will hopefully lead to a performance increase. - New configuration variables (`toolchain` and `numver`) have been added to allow finer-grained configuration. - Override information is no longer read from `rustup` output. Instead, it is parsed from the same files that rustup would use to determine this info. Co-authored-by: qryxip <qryxip@gmail.com> Co-authored-by: qryxip <qryxip@gmail.com>
Diffstat (limited to 'docs/config')
-rw-r--r--docs/config/README.md12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/config/README.md b/docs/config/README.md
index 2e011535a..3d9be60de 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -2991,11 +2991,13 @@ The module will be shown if any of the following conditions are met:
### Variables
-| Variable | Example | Description |
-| -------- | ----------------- | ------------------------------------ |
-| version | `v1.43.0-nightly` | The version of `rustc` |
-| symbol | | Mirrors the value of option `symbol` |
-| style\* | | Mirrors the value of option `style` |
+| Variable | Example | Description |
+| --------- | ----------------- | -------------------------------------------- |
+| version | `v1.43.0-nightly` | The version of `rustc` |
+| numver | `1.51.0` | The numeric component of the `rustc` version |
+| toolchain | `beta` | The toolchain version |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
*: This variable can only be used as a part of a style string