curl--proto'=https'--tlsv1.2https://sh.rustup.rs-sSf|shinfo:downloadinginstallerWelcometoRust!ThiswilldownloadandinstalltheofficialcompilerfortheRustprogramminglanguage,anditspackagemanager,Cargo.RustupmetadataandtoolchainswillbeinstalledintotheRustuphomedirectory,locatedat:/Users/zp/.rustupThiscanbemodifiedwiththeRUSTUP_HOMEenvironmentvariable.TheCargohomedirectoryislocatedat:/Users/zp/.cargoThiscanbemodifiedwiththeCARGO_HOMEenvironmentvariable.Thecargo,rustc,rustupandothercommandswillbeaddedtoCargo's bin directory, located at:/Users/zp/.cargo/binThispathwillthenbeaddedtoyourPATHenvironmentvariablebymodifyingtheprofilefileslocatedat:/Users/zp/.profile/Users/zp/.bash_profile/Users/zp/.bashrc/Users/zp/.zshenvYoucanuninstallatanytimewithrustupselfuninstallandthesechangeswillbereverted.Currentinstallationoptions:defaulthosttriple:x86_64-apple-darwindefaulttoolchain:stable(default)profile:defaultmodifyPATHvariable:yes1)Proceedwithinstallation(default)2)Customizeinstallation3)Cancelinstallation>
info:profilesetto'default'info:defaulthosttripleisx86_64-apple-darwininfo:syncingchannelupdatesfor'stable-x86_64-apple-darwin'703.5KiB/703.5KiB(100%)671.4KiB/sin1sETA:0sinfo:latestupdateon2022-06-30,rustversion1.62.0(a8314ef7d2022-06-27)info:downloadingcomponent'cargo'4.7MiB/4.7MiB(100%)2.8MiB/sin1sETA:0sinfo:downloadingcomponent'clippy'info:downloadingcomponent'rust-docs'18.3MiB/18.3MiB(100%)5.3MiB/sin4sETA:0sinfo:downloadingcomponent'rust-std'24.6MiB/24.6MiB(100%)4.0MiB/sin6sETA:0sinfo:downloadingcomponent'rustc'52.6MiB/52.6MiB(100%)1.5MiB/sin20sETA:0sinfo:downloadingcomponent'rustfmt'2.4MiB/2.4MiB(100%)1.4MiB/sin2sETA:0sinfo:installingcomponent'cargo'info:installingcomponent'clippy'info:installingcomponent'rust-docs'18.3MiB/18.3MiB(100%)1.7MiB/sin21sETA:0sinfo:installingcomponent'rust-std'24.6MiB/24.6MiB(100%)8.9MiB/sin2sETA:0sinfo:installingcomponent'rustc'52.6MiB/52.6MiB(100%)10.4MiB/sin5sETA:0sinfo:installingcomponent'rustfmt'info:defaulttoolchainsetto'stable-x86_64-apple-darwin'stable-x86_64-apple-darwininstalled-rustc1.62.0(a8314ef7d2022-06-27)Rustisinstallednow.Great!Togetstartedyoumayneedtorestartyourcurrentshell.ThiswouldreloadyourPATHenvironmentvariabletoincludeCargo's bin directory ($HOME/.cargo/bin).Toconfigureyourcurrentshell,run:source"$HOME/.cargo/env"