Rust: تفاوت بین نسخهها
از ویکی فارسی اوبونتو
| سطر ۲۵: | سطر ۲۵: | ||
| + | ==آموزش== | ||
| + | |||
| + | ===پیوند به بیرون=== | ||
| + | * [https://www.rust-lang.org/learn آموزش رسمی زبان Rust] | ||
[[رده: زبانهای برنامهنویسی]] | [[رده: زبانهای برنامهنویسی]] | ||
نسخهٔ ۱۹ خرداد ۱۴۰۳، ساعت ۱۶:۱۴
Rust یک زبان برنامهنویسی است.
محتویات
نصب
برای نصب کامپایلر رااست از فرمان زیر استفاده کنید.
$ sudo apt install rustc cargo
اجرا
$ cat hello.rs
// This is the main function.
fn main() {
// Statements here are executed when the compiled binary is called.
// Print text to the console.
println!("Hello World!");
}
$ rustc hello.rs
$ ./hello
Hello World!