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!