2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
पर्यावरणम्
rust: 1.79.0(2024-06-13)
खिडकयः : २.
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
खिडकयः : २.
https://static.rust-lang.org/dist/rust-1.79.0-x86_64-pc-विण्डोज-msvc.msi
लिनक्सः २.
https://static.rust-lang.org/dist/rust-1.79.0-x86_64-अज्ञात-लिनक्स-ग्नु.तार.xz
macos: १.
https://static.rust-lang.org/dist/rust-1.79.0-x86_64-सेब-डार्विन.pkg
$ rustc -V
rustc 1.79.0
cargo new hello_world
$ cargo build
$ rustc src/main.rs
$ ./target/debug/hello_world
Hello, world!
विजुअल् स्टूडियो कोड् इत्यनेन सह जङ्गमः
[उपयोक्तृपुस्तिका (rust-analyzer.github.io)
$CARGO_HOME/config इत्यत्र निम्नलिखितसामग्रीम् योजयन्तु
[source.crates-io]
replace-with = 'mirror'
[source.mirror]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
टीका:$CARGO_HOME
: विण्डोज-प्रणाल्यां पूर्वनिर्धारितं भवति :%USERPROFILE%.cargo
, यूनिक्स-सदृशेषु प्रणालीषु पूर्वनिर्धारितं भवति :$HOME/.cargo
सन्दर्भः: