Commit Graph

  • 36fcd3782e Let argument parser handle Profile conversion Dirkjan Ochtman 2024-06-15 13:05:07 +02:00
  • 55d4f351e3 Use simpler form for string concatenation Dirkjan Ochtman 2024-06-09 10:52:24 +02:00
  • 69937659da Reduce rightward drift by duplicating some Ok-wrapping Dirkjan Ochtman 2024-06-09 10:50:41 +02:00
  • ddc97caebe Rename _install_selection() to IInstallOpts::install() Dirkjan Ochtman 2024-06-09 10:48:33 +02:00
  • 5af3afb90f Inline async closure Dirkjan Ochtman 2024-06-09 10:44:04 +02:00
  • 7eba73a9e6 Move error mapping out of validation function Dirkjan Ochtman 2024-06-09 10:40:13 +02:00
  • 49cf657bc7 Rename do_pre_install_options_sanity_checks() to InstallOpts::validate() Dirkjan Ochtman 2024-06-09 10:34:46 +02:00
  • b9f150c16b Rename customize_install() to InstallOpts::customize() Dirkjan Ochtman 2024-06-09 10:05:57 +02:00
  • 370cd170cc Pass InstallOpts around directly Dirkjan Ochtman 2024-04-09 16:39:22 +02:00
  • 368f133345 refactor(terminalsource): use .eq_ignore_ascii_case() in ColorableTerminal::new rami3l 2024-06-15 09:35:18 +08:00
  • 988f14a8d4 chore(notify): sort logging macros and NotificationLevel on verbosity rami3l 2024-06-15 09:30:35 +08:00
  • 2c4f9864d0 chore(env): retire RUSTUP_DEBUG in favor of RUST_LOG rami3l 2024-06-14 18:42:12 +08:00
  • 67d6be2f67 feat(log): make console_logger() accept RUSTUP_TERM_COLOR and NO_COLOR rami3l 2024-06-14 18:35:25 +08:00
  • 509714deb4 refactor(log): reimplement log using tracing rami3l 2024-06-14 11:48:27 +08:00
  • 5a064bc053 refactor(test): clean up before_test_async() rami3l 2024-06-14 13:47:24 +08:00
  • 340719a062 chore(deps): make tracing-subscriber a hard requirement rami3l 2024-05-03 19:40:30 +08:00
  • 6d5f0f698b refactor(test): setup tracing subscriber in before_test_async() rami3l 2024-06-12 19:06:44 +08:00
  • 5f34b1277f test(clitools): disable run_inprocess() rami3l 2024-06-12 18:24:23 +08:00
  • 0aa7a2a051 refactor(test): execute all #[rustup_macros::unit_test]s within a tokio context rami3l 2024-06-12 09:48:29 +08:00
  • 3ea435540f refactor(log): extract telemetry() rami3l 2024-06-12 09:37:24 +08:00
  • 0208b6df24 Remove noop functions in favor of conditional compilation Dirkjan Ochtman 2024-06-13 14:34:23 +02:00
  • cf633747ff Avoid trivial wrapper functions Dirkjan Ochtman 2024-06-13 13:59:22 +02:00
  • 66b50608e5 Store process name in error variant directly Dirkjan Ochtman 2024-06-12 15:09:59 +02:00
  • 86a03bcee4 Inline trivial wrapper function Dirkjan Ochtman 2024-06-12 10:38:18 +02:00
  • d05498e9f6 Fix misleading "uninstalled toolchain" notification Mihir Gadgil 2024-06-11 23:00:01 -04:00
  • 75005f8441 refactor(ci/run): use more target_cargo() in run.bash rami3l 2024-06-11 21:50:53 +08:00
  • 81a71647f4 Remove trivial new() implementation Dirkjan Ochtman 2024-06-08 15:03:26 +02:00
  • 76b21088f5 Use serde to encode/decode mock manifests Dirkjan Ochtman 2024-06-06 15:53:57 +02:00
  • 57ba98f0c7 Use serde to encode/decode rustup manifests Dirkjan Ochtman 2024-06-06 15:19:39 +02:00
  • 7aed7d0294 Use serde to encode/decode config Dirkjan Ochtman 2024-06-06 15:12:52 +02:00
  • 3f80e43b4c Represent config version as an enum Dirkjan Ochtman 2024-06-06 15:09:42 +02:00
  • aae9de3cd8 Use serde to encode/decode manifests Dirkjan Ochtman 2024-06-06 14:52:59 +02:00
  • b46252a2b9 Represent manifest version as enum Dirkjan Ochtman 2024-06-06 11:05:19 +02:00
  • e598bd568a Use serde to encode/decode settings Dirkjan Ochtman 2024-06-06 10:57:51 +02:00
  • df4b9ae745 Add tests for settings encoding Dirkjan Ochtman 2024-06-06 10:52:31 +02:00
  • ebc12fec9c Derive Default for Settings Dirkjan Ochtman 2024-06-06 10:34:31 +02:00
  • 04418eec52 Represent metadata version as an enum Dirkjan Ochtman 2024-06-06 10:33:46 +02:00
  • 122c9d3ab3 Use Default impl for Settings::profile default Dirkjan Ochtman 2024-06-06 10:23:04 +02:00
  • c3593c0d87 Derive Default for Profile Dirkjan Ochtman 2024-06-06 10:22:41 +02:00
  • 06fd61a8a6 Discard unnecessary layer of Arc Dirkjan Ochtman 2024-06-05 15:34:13 +02:00
  • cd612e0e98 Externalize wrapping of DownloadTracker Dirkjan Ochtman 2024-06-05 15:33:16 +02:00
  • 768ed53bc1 Inline NotifyOnConsole Dirkjan Ochtman 2024-06-05 15:31:58 +02:00
  • f1aaa1b5de Internalize interior mutability for Notifier Dirkjan Ochtman 2024-06-05 15:30:33 +02:00
  • 7acd8b20a6 Decouple Cfg from Notifier initialization Dirkjan Ochtman 2024-06-05 15:13:21 +02:00
  • c19aae9ebc fix(dist/triple): ensure dist::triple::known is up to date with platforms rami3l 2024-05-24 21:48:55 +08:00
  • 850a14aff8 refactor(toolchain): reuse dist::triple::known in toolchain::names rami3l 2024-06-08 10:25:40 +08:00
  • 2c66cb86a9 refactor(dist/triple): move known triples to dist::triple::known rami3l 2024-05-28 15:18:20 +08:00
  • 40fbf42a67 refactor(build): use platforms to verify RUSTUP_OVERRIDE_BUILD_TRIPLE rami3l 2024-05-24 20:27:40 +08:00
  • 221fd613a9 refactor(build): simplify the code obtaining the current triple rami3l 2024-05-24 20:23:45 +08:00
  • a47877ec1c feat(cli): add --quiet to rustup (target|component) list rami3l 2024-06-05 19:15:52 +08:00
  • d2591074be feat(cli): add --quiet to rustup toolchain list rami3l 2024-06-05 19:53:23 +08:00
  • ee1fa08326 Inline trivial single-use function utils::to_absolute() Dirkjan Ochtman 2024-06-05 10:47:59 +02:00
  • a13aa3b023 Inline trivial single-use function Cfg::which_binary() Dirkjan Ochtman 2024-06-05 10:41:34 +02:00
  • 705b7db4e2 Inline short single-use function direct_proxy() Dirkjan Ochtman 2024-06-05 10:37:45 +02:00
  • f86792829b Rename new_toolchain_with_reason() to Toolchain::with_reason() Dirkjan Ochtman 2024-06-05 10:30:37 +02:00
  • 5db820656f Move Cfg::maybe_do_cargo_fallback() to Toolchain Dirkjan Ochtman 2024-06-05 10:28:26 +02:00
  • 8dfacf0cc6 Move Cfg::create_command_for_toolchain() to Toolchain::command() Dirkjan Ochtman 2024-06-05 10:25:07 +02:00
  • d34bea5db5 Extract common usage of Cfg::create_command_for_toolchain() Dirkjan Ochtman 2024-06-05 10:19:40 +02:00
  • a8be908ab5 Inline trivial single-use function Cfg::create_command_for_dir() Dirkjan Ochtman 2024-06-05 10:17:37 +02:00
  • 60d4a5a021 Inline simple function Cfg::create_command_for_toolchain() Dirkjan Ochtman 2024-06-05 10:15:47 +02:00
  • 9e13bcd68c Move toolchain construction out of Cfg::create_command_for_toolchain() Dirkjan Ochtman 2024-06-05 10:08:20 +02:00
  • 382bf635d3 Inline single-use function Dirkjan Ochtman 2024-06-05 10:01:43 +02:00
  • 4a4615b1da Improve error message for failing .rustup creation Dirkjan Ochtman 2024-06-05 09:58:54 +02:00
  • f515409d58 Inline trivial single-use function Dirkjan Ochtman 2024-06-05 09:57:29 +02:00
  • 4ae35fa5c5 Inline trivial single-use function Dirkjan Ochtman 2024-06-05 09:56:06 +02:00
  • 12f62a1416 Inline utils::current_dir() Dirkjan Ochtman 2024-06-05 07:10:34 +02:00
  • aa85ce7453 Take explicit current_dir argument in to_absolute() Dirkjan Ochtman 2024-06-05 07:05:05 +02:00
  • ec1be9ca8f Pass current_dir down from main() Dirkjan Ochtman 2024-06-05 07:00:26 +02:00
  • 97166854bc Update rustup.rs website to offer Rustup on Windows on Arm Alovchin91 2024-05-29 00:41:52 +02:00
  • 84495dc26c Use Cfg::current_dir in override_remove() Dirkjan Ochtman 2024-06-04 23:29:31 +02:00
  • e25cb0fe76 Use Cfg::current_dir in override_add() Dirkjan Ochtman 2024-06-04 23:27:36 +02:00
  • 626c1503da Use Cfg::current_dir in find_or_install_active_toolchain() Dirkjan Ochtman 2024-06-04 23:24:06 +02:00
  • 79e8dd9541 Use Cfg::current_dir for create_command_for_dir() Dirkjan Ochtman 2024-06-04 23:21:45 +02:00
  • aed6198ead Use Cfg::current_dir for find_or_install_active_toolchain() Dirkjan Ochtman 2024-06-04 23:20:32 +02:00
  • 76ef0f86ad Store current_dir in Cfg for use in find_active_toolchain() Dirkjan Ochtman 2024-06-04 23:19:26 +02:00
  • 673209a1ad Enable building Rustup win-aarch64 on PR Alovchin91 2024-05-29 00:46:29 +02:00
  • 0faae9d922 Add aarch64-apple-darwin and aarch64-pc-windows-msvc to cloudfront-invalidation.txt Alovchin91 2024-05-29 00:41:52 +02:00
  • ae656873f4 Update Other installation methods page to include aarch64-pc-windows-msvc Alovchin91 2024-05-29 00:41:52 +02:00
  • 59d15e6aa8 Remove unnecessary trait abstraction Dirkjan Ochtman 2024-04-09 14:52:06 +02:00
  • 6b2508ec42 Simplify process access to current_dir Dirkjan Ochtman 2024-04-09 14:36:59 +02:00
  • 204c8a9ca4 Simplify process access to environment variables Dirkjan Ochtman 2024-04-09 14:34:07 +02:00
  • 70420fa12e Remove unnecessary trait bound for home::Env Dirkjan Ochtman 2024-04-09 14:24:53 +02:00
  • 5ced6f2d35 Simplify process access to pid Dirkjan Ochtman 2024-04-09 14:05:09 +02:00
  • b6de3f780d Simplify process access to stdin Dirkjan Ochtman 2024-04-09 13:58:46 +02:00
  • 4db3688ee6 Simplify process access to stderr Dirkjan Ochtman 2024-04-09 13:55:35 +02:00
  • fa1ecaf457 Simplify process access to stdout Dirkjan Ochtman 2024-04-09 13:53:29 +02:00
  • b2955d74e1 Simplify process access to argument iterator Dirkjan Ochtman 2024-04-09 13:47:37 +02:00
  • 91ca378c1f fix(download): work around hyper hang issue by adjusting reqwest config rami3l 2024-06-03 14:52:49 +08:00
  • d1cc5ca0a3 test(download): fix clippy warnings regarding Mutex in async rami3l 2024-06-03 14:44:46 +08:00
  • 6d4376180d test(dist): add regression tests for parsing beta versions with tags roife 2024-06-04 17:12:36 +08:00
  • 74d16e63a2 test(dist): introduce scenario BetaTag with mock test data roife 2024-06-04 17:11:14 +08:00
  • ca21bf257b feat(dist): add support for parsing beta versions with tags in the toolchain roife 2024-06-04 16:25:21 +08:00
  • 1709a234c0 refactor(utils): move run_future() under manifestation rami3l 2024-06-03 20:03:07 +08:00
  • 883e861ae1 feat(config): make create_command_for_toolchain() async rami3l 2024-06-03 19:56:25 +08:00
  • 408ac2360d refactor(config): make update_all_channels() async rami3l 2024-06-03 19:52:51 +08:00
  • e97627e719 refactor(self_update): make maybe_install_rust() async rami3l 2024-06-03 19:38:46 +08:00
  • 6494655890 refactor(config): make ensure_installed async rami3l 2024-06-03 19:31:34 +08:00
  • 73c6b19db1 fix expected path-separators on windows Skgland 2024-06-02 18:30:38 +02:00
  • 3d7a29226e add a regression test Skgland 2024-06-02 16:55:09 +02:00
  • 4eb9b6bdd6 consistently add context with file path when parsing fails Skgland 2024-06-02 12:35:05 +02:00