2544 Commits

Author SHA1 Message Date
Dirkjan Ochtman
dc29129dd0 Deprecate native-tls as well 2025-04-28 13:52:08 +00:00
Dirkjan Ochtman
b79969b8d0 Enable HTTP/2 support for reqwest download backend 2025-04-26 02:17:33 +00:00
Dirkjan Ochtman
a0946f057b Set ALPN protocols for rustls backend 2025-04-26 02:17:33 +00:00
Dirkjan Ochtman
b0fc3db8a5 Emit tracing events from log facade calls 2025-04-25 10:47:08 +00:00
Dirkjan Ochtman
db9e76c078 download: show Debug representation for errors 2025-04-25 10:40:47 +00:00
Dirkjan Ochtman
d462b4e186 Clean up formatting in span arguments 2025-04-25 09:55:39 +00:00
Dirkjan Ochtman
7a42d6d902 Avoid repeated globals in tracing events 2025-04-25 09:55:39 +00:00
Dirkjan Ochtman
148f5e106d Log original download errors immediately 2025-04-25 09:43:01 +00:00
Dirkjan Ochtman
f405664afe Avoid importing anyhow::Result alias 2025-04-25 09:43:01 +00:00
rami3l
3200634356 feat(cli/rustup-mode): add aliases to rustup component remove 2025-04-25 07:15:56 +00:00
Chris Denton
1df20633d4 Hardlink proxies if symlinks aren't reachable
And add an environment variable to force hardlinking in case that doesn't work.
2025-04-19 09:14:43 +00:00
Jens Reidel
4176dc17ac Add powerpc64le-unknown-linux-musl support
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-04-18 02:32:25 +00:00
Jordan McQueen
2cc0829b65 Add toolchain_name to not installed bail msg
Regularly working with local custom toolchains that have reasonably high
cardinality, having this diagnostic would've saved me a good chunk of
time.
2025-04-17 08:37:57 +00:00
Dirkjan Ochtman
3cd156c463 Warn about using curl 2025-04-07 15:52:23 +00:00
Dirkjan Ochtman
0788cd6d20 Simplify download API abstraction 2025-04-07 15:52:23 +00:00
Dirkjan Ochtman
941f543143 Fold download crate back into rustup 2025-04-07 15:52:23 +00:00
Chris Denton
18b8e340f0 Test CARGO environment replacement 2025-04-04 12:22:40 +00:00
Chris Denton
f9ed6fc427 Update CARGO env var if it is a rustup proxy 2025-04-04 12:22:40 +00:00
Dirkjan Ochtman
bc820323d5 Tweak toolchain subcommand help text 2025-03-30 12:07:27 +00:00
Dirkjan Ochtman
027a625557 Move toolchain and default commands first 2025-03-30 12:07:27 +00:00
CLoaKY233
c89f131249 show toolchain paths in rustup show -v output 2025-03-30 10:58:42 +00:00
rami3l
6261788652 refactor(cli/self-update): save allocations in Nu::rcfiles() 2025-03-25 14:21:20 +00:00
rami3l
13fa296051 fix(cli/self-update)!: stop appending to env.nu due to deprecation
See <https://github.com/nushell/nushell/discussions/14860> for more context.
2025-03-25 14:21:20 +00:00
rami3l
3d29f1a868 fix(cli/self-update): consider Windows paths in Nushell suggestions 2025-03-25 14:21:20 +00:00
rami3l
01c7a55cdc refactor(cli/self-update): use path add in env.nu template
Co-authored-by: Yethal <26117918+Yethal@users.noreply.github.com>
2025-03-25 14:21:20 +00:00
rami3l
013349c14f fix(cli/self-update): use interpolated string in env.nu template 2025-03-25 14:21:20 +00:00
rami3l
36134f5add fix(cli/self-update): fix Nushell suggestion in Nu::source_string()
Co-authored-by: Yethal <26117918+Yethal@users.noreply.github.com>
2025-03-25 14:21:20 +00:00
rami3l
792a6bef40 fix(cli/self-update): fix Nushell suggestion in post_install_msg_unix_source_env!()
Co-authored-by: Yethal <26117918+Yethal@users.noreply.github.com>
2025-03-25 14:21:20 +00:00
rami3l
c5a694a20a feat(cli/self-update): move cargo_home_str() to UnixShell::cargo_home_str() 2025-03-25 14:21:20 +00:00
rami3l
092b43277f refactor(cli/self-update): extract cargo_home_str_with_home() 2025-03-25 14:21:20 +00:00
rami3l
f97e8361e6 refactor(cli/self-update)!: move ShellScript::write() to UnixShell::write_script() 2025-03-25 14:21:20 +00:00
rami3l
46a1f5dada chore(cli/self-update): reorganize imports 2025-03-25 14:21:20 +00:00
rami3l
3b60eb245d fix(config)!: strip /dist suffix from RUSTUP_DIST_ROOT only once 2025-03-19 15:28:40 +00:00
rami3l
6d7779c401 feat(cli/self-update): allow setting RUSTUP_VERSION for arbitrary downgrades 2025-03-19 15:28:40 +00:00
rami3l
4f27ce486f feat(test/clitools): add Config::expect_ok_ex_env() 2025-03-19 15:28:40 +00:00
rami3l
ed54fd29c4 refactor(config): clean up dist_root_server() 2025-03-19 15:28:40 +00:00
rami3l
1015b50712 refactor(cli/rustup-mode): use Cfg::active_toolchain() for notes 2025-03-19 15:26:39 +00:00
rami3l
7e8def97de refactor(config)!: rename Cfg::find_or_install_active_toolchain() to ensure_active_toolchain() 2025-03-19 15:26:39 +00:00
rami3l
7b64e9f345 refactor(config)!: rename Cfg::find_active_toolchain() to maybe_ensure_active_toolchain() & adjust variable names 2025-03-19 15:26:39 +00:00
rami3l
8b054db3a2 fix(errors)!: improve error messages for RustupError::ToolchainNotInstalled 2025-03-19 15:26:39 +00:00
rami3l
f439f48376 refactor(cfg): extract Cfg::active_toolchain() 2025-03-19 15:26:39 +00:00
Chris Denton
7870fd11da Add set auto-install disable 2025-03-15 03:42:41 +00:00
rami3l
94a746ac71 fix(dist): refine suggestions about missing targets 2025-03-14 06:52:48 +00:00
Chris Denton
51a0b390fe Append Windows bin directory to PATH by default
This also allows opting out of the new default using the `RUSTUP_WINDOWS_PATH_ADD_BIN`. Setting it controls if or where the bin directory is added to PATH:

0 => don't add to PATH
1 => prepend to PATH
unset, or anything else => append to PATH
2025-03-14 02:45:17 +00:00
Wesley Wiser
ec156b4de2 Remove validation for custom toolchains when reading rust-toolchain.toml
This validation was introduced in e1306b3908
However, it breaks a number of scenarios that previously worked without
issue such as #4248. As requested by rustup maintainers in that thread,
I'm taking out the extra validation added in that commit, leaving the
rest of the code as-is.

Testing confirms this fixes #4248.
2025-03-14 01:55:48 +00:00
Evgeny
895a43a3e2 Allow copy&paste of documented registry keys into Regedit
Current documented registry path can't be easily used as a lookup in the default Windows Regedit registry editing tool
  - Forward slashes are not accepted by Regedit
  - nor do the full paths that include registry keys, only their parent address

This edits the message format so you could copy&paste
2025-03-10 13:21:30 +00:00
rami3l
bed004f38f fix!(config): re-enable implicit toolchain installation in Cfg::local_toolchain() with optional opt-out 2025-03-05 06:33:02 +00:00
rami3l
dd7d362230 refactor(test/clitools): extract Config::expect_err_env() 2025-03-05 06:33:02 +00:00
Chris Denton
2ddbdb8906 Use relative symlinks when possible 2025-03-05 06:03:00 +00:00
rami3l
95da6170c6 fix!(config): re-enable active toolchain installation in Cfg::find_active_toolchain() with optional opt-out 2025-03-04 15:07:29 +00:00