Rust is a recent programming language focused on performance and memory safety, mainly safe concurrency.

Rust is syntactically like C++.

It provides memory safety without using garbage collection.

Installing Rust on Fedora.

The command below will install the rust compiler and its dependencies.

sudo dnf install rust cargo

Once Rust installs successfully, we can write our first program in Rust and compile and execute it.

Creating a file .rs is the file extension used by Rust.

touch hello.rsCode language: CSS (css)

Write this code in the file

fn main() 
    print!("Hello World!");
    print!("Rust coding day {}", 1); 
}Code language: PHP (php)

Save the file and run the Rust compiler.

rustc hello.rsCode language: CSS (css)

It will compile and create an executable file named after as hello.

Execute the hello compiled binary.


Now you have Rust installed and running.

Happy Coding!

I compiled a list of software and services that I use to improve my workflow, here is the link to the list.

Darryl Dias

I’m Darryl. I’m a 3D Artist, Programmer and Linux enthusiast. On this site I share my insights, tips and tricks, tutorials, methods and best practices.