@@ -74,20 +74,24 @@ macro_rules! pre_install_msg_template {
74
74
This will download and install the official compiler for the Rust
75
75
programming language, and its package manager, Cargo.
76
76
77
- It will add the `cargo`, `rustc`, `rustup` and other commands to
78
- Cargo's bin directory, located at:
79
-
80
- {cargo_home_bin}
81
-
82
- This can be modified with the CARGO_HOME environment variable.
83
-
84
77
Rustup metadata and toolchains will be installed into the Rustup
85
78
home directory, located at:
86
79
87
80
{rustup_home}
88
81
89
82
This can be modified with the RUSTUP_HOME environment variable.
90
83
84
+ The Cargo home directory located at:
85
+
86
+ {cargo_home}
87
+
88
+ This can be modified with the CARGO_HOME environment variable.
89
+
90
+ The `cargo`, `rustc`, `rustup` and other commands will be added to
91
+ Cargo's bin directory, located at:
92
+
93
+ {cargo_home_bin}
94
+
91
95
" ,
92
96
$platform_msg,
93
97
r#"
@@ -562,6 +566,7 @@ fn pre_install_msg(no_modify_path: bool) -> Result<String> {
562
566
let rcfiles = rcfiles. join ( "\n " ) ;
563
567
Ok ( format ! (
564
568
pre_install_msg_unix!( ) ,
569
+ cargo_home = cargo_home. display( ) ,
565
570
cargo_home_bin = cargo_home_bin. display( ) ,
566
571
plural = plural,
567
572
rcfiles = rcfiles,
@@ -570,13 +575,15 @@ fn pre_install_msg(no_modify_path: bool) -> Result<String> {
570
575
} else {
571
576
Ok ( format ! (
572
577
pre_install_msg_win!( ) ,
578
+ cargo_home = cargo_home. display( ) ,
573
579
cargo_home_bin = cargo_home_bin. display( ) ,
574
580
rustup_home = rustup_home. display( ) ,
575
581
) )
576
582
}
577
583
} else {
578
584
Ok ( format ! (
579
585
pre_install_msg_no_modify_path!( ) ,
586
+ cargo_home = cargo_home. display( ) ,
580
587
cargo_home_bin = cargo_home_bin. display( ) ,
581
588
rustup_home = rustup_home. display( ) ,
582
589
) )
0 commit comments