From 7e43365b8106a58cd8a5b0189d5551e987652a15 Mon Sep 17 00:00:00 2001 From: Shiftine Skyborne Date: Tue, 19 Sep 2023 18:13:29 +0000 Subject: [PATCH] Data update 2023-09-19 18-13-27 --- docs/en/common/rustup-completions.md | 18 ++++++++++++++ docs/en/common/rustup-component.md | 31 ++++++++++++++++++++++++ docs/en/common/rustup-doc.md | 35 ++++++++++++++++++++++++++++ docs/en/common/rustup-override.md | 31 ++++++++++++++++++++++++ docs/en/common/rustup-self.md | 22 +++++++++++++++++ docs/en/common/rustup-set.md | 26 +++++++++++++++++++++ source | 2 +- 7 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 docs/en/common/rustup-completions.md create mode 100644 docs/en/common/rustup-component.md create mode 100644 docs/en/common/rustup-doc.md create mode 100644 docs/en/common/rustup-override.md create mode 100644 docs/en/common/rustup-self.md create mode 100644 docs/en/common/rustup-set.md diff --git a/docs/en/common/rustup-completions.md b/docs/en/common/rustup-completions.md new file mode 100644 index 0000000000..48fa51d395 --- /dev/null +++ b/docs/en/common/rustup-completions.md @@ -0,0 +1,18 @@ +--- +layout: page +title: common/rustup-completions (English) +description: "Generate shell completions for `rustup` and `cargo`." +content_hash: 8812ad12e2b0daed1c966ab0916d0d189dd3ebac +last_modified_at: 2023-09-19 +--- + +This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. + +
# rustup completions + +Generate shell completions for `rustup` and `cargo`. +More information: . + +- Print the completion script to `stdout`: + +`rustup completions `bash|elvish|fish|powershell|zsh` `rustup|cargo diff --git a/docs/en/common/rustup-component.md b/docs/en/common/rustup-component.md new file mode 100644 index 0000000000..24d14a9910 --- /dev/null +++ b/docs/en/common/rustup-component.md @@ -0,0 +1,31 @@ +--- +layout: page +title: common/rustup-component (English) +description: "Modify a toolchain's installed components." +content_hash: f3ee0d3469b793bb13e4d53a797b6b626c9127ad +last_modified_at: 2023-09-19 +--- + +This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. + +
# rustup component + +Modify a toolchain's installed components. +Without the `--toolchain` option `rustup` will use the default toolchain. See `rustup help toolchain` for more information about toolchains. +More information: . + +- Add a component to a toolchain: + +`rustup component add --toolchain `toolchain` `component + +- Remove a component from a toolchain: + +`rustup component remove --toolchain `toolchain` `component + +- List installed and available components for a toolchain: + +`rustup component list --toolchain `toolchain + +- List installed components for a toolchain: + +`rustup component list --toolchain `toolchain` --installed` diff --git a/docs/en/common/rustup-doc.md b/docs/en/common/rustup-doc.md new file mode 100644 index 0000000000..4e359c1787 --- /dev/null +++ b/docs/en/common/rustup-doc.md @@ -0,0 +1,35 @@ +--- +layout: page +title: common/rustup-doc (English) +description: "Open the offline Rust documentation for the current toolchain." +content_hash: fdc5a3b0a9ffdc3c57f9f074a7d02c6dd367e612 +last_modified_at: 2023-09-19 +--- + +This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. + +
# rustup doc + +Open the offline Rust documentation for the current toolchain. +There are a lot more documentation pages not mentioned here. See `rustup help doc` for more information. +More information: . + +- Open the main page: + +`rustup doc` + +- Open the documentation for a specific topic (a module in the standard library, a type, a keyword, etc.): + +`rustup doc `std::fs|usize|fn|... + +- Open the Rust Programming Language book: + +`rustup doc --book` + +- Open the Cargo book: + +`rustup doc --cargo` + +- Open the Rust Reference: + +`rustup doc --reference` diff --git a/docs/en/common/rustup-override.md b/docs/en/common/rustup-override.md new file mode 100644 index 0000000000..bb4c59706d --- /dev/null +++ b/docs/en/common/rustup-override.md @@ -0,0 +1,31 @@ +--- +layout: page +title: common/rustup-override (English) +description: "Modify directory toolchain overrides." +content_hash: 59b9a159881593523f74a25066094285f058b950 +last_modified_at: 2023-09-19 +--- + +This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. + +
# rustup override + +Modify directory toolchain overrides. +See `rustup help toolchain` for more information about toolchains. +More information: . + +- List directiory toolchain overrides: + +`rustup override list` + +- Set the override toolchain for the current directory (i.e. tell `rustup` to run `cargo`, `rustc`, etc. from a specific toolchain when in that directory): + +`rustup override set `toolchain + +- Remove the toolchain override for the current directory: + +`rustup override unset` + +- Remove all toolchain overrides for directories that no longer exist: + +`rustup override unset --nonexistent` diff --git a/docs/en/common/rustup-self.md b/docs/en/common/rustup-self.md new file mode 100644 index 0000000000..76ddfd8959 --- /dev/null +++ b/docs/en/common/rustup-self.md @@ -0,0 +1,22 @@ +--- +layout: page +title: common/rustup-self (English) +description: "Modify the `rustup` installation." +content_hash: 36e2686d58f429b1ca7439e659955821f7fd6229 +last_modified_at: 2023-09-19 +--- + +This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. + +
# rustup self + +Modify the `rustup` installation. +More information: . + +- Update `rustup`: + +`rustup self update` + +- Uninstall `rustup`: + +`rustup self uninstall` diff --git a/docs/en/common/rustup-set.md b/docs/en/common/rustup-set.md new file mode 100644 index 0000000000..e9faf48bc2 --- /dev/null +++ b/docs/en/common/rustup-set.md @@ -0,0 +1,26 @@ +--- +layout: page +title: common/rustup-set (English) +description: "Alter `rustup` settings." +content_hash: 092a8d17efc8abada5c6bd8da52f7a1955318882 +last_modified_at: 2023-09-19 +--- + +This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. + +
# rustup set + +Alter `rustup` settings. +More information: . + +- Set the default host triple: + +`rustup set default-host `host_triple + +- Set the default profile (`minimal` includes only `rustc`, `rust-std` and `cargo`, whereas `default` adds `rust-docs`, `rustfmt` and `clippy`): + +`rustup set profile `minimal|default + +- Set whether `rustup` should update itself when running `rustup update`: + +`rustup set auto-self-update `enable|disable|check-only diff --git a/source b/source index 02b70933d3..3f480249d9 160000 --- a/source +++ b/source @@ -1 +1 @@ -Subproject commit 02b70933d3ef354980218a7cd77e4e59f365cc33 +Subproject commit 3f480249d9d4f2395f88e387e45e31af53550146