Mi informacion de contacto
Correo[email protected]
2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
ambiente
rust: 1.79.0(2024-06-13)
ventanas:
https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
Unix:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
ventanas:
https://static.rust-lang.org/dist/rust-1.79.0-x86_64-pc-windows-msvc.msi
Linux:
https://static.rust-lang.org/dist/rust-1.79.0-x86_64-unknown-linux-gnu.tar.xz
Mac OS:
https://static.rust-lang.org/dist/rust-1.79.0-x86_64-apple-darwin.pkg
$ rustc -V
rustc 1.79.0
cargo new hello_world
$ cargo build
$ rustc src/main.rs
$ ./target/debug/hello_world
Hello, world!
[Manual del usuario (rust-analyzer.github.io)]
Agregue el siguiente contenido a $CARGO_HOME/config
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
Nota:$CARGO_HOME
: En el sistema Windows, el valor predeterminado es:%USERPROFILE%.cargo
, el valor predeterminado en sistemas tipo Unix es:$HOME/.cargo
Referencia: