Write Your First Program with the Rust Language
Discover the power of Rust, a modern language with C-level performance and a friendly syntax. Develop bug-free applications for embedded systems, web servers, and CLI apps. Learn about Rust’s types, configuration files, and package manager. Explore concepts like macros and pattern matching. Install Rust, compile and run programs, handle user input, and handle errors effectively. Take your code to the next level with loops and make it more efficient. Start your Rust journey today and experience the joy of writing clean and powerful code.
Rust is a modern language that is close to the metal. It’s got the performance of C, but with a more friendly syntax and community.
It’s also memory safe, and ensures your applications are bug free by catching errors at compile time instead of runtime.
These features make Rust a great choice for developing code for embedded systems, web servers, and CLI apps. You can even compile Rust into WebAssembly in order to run it in-browser!
But as the saying goes, “before you learn to run, you must learn to walk”.
In this course, you will write your first Rust application.
Starting from “Hello World” you’ll quickly move on to learning about Rust’s types, configuration files, and the
package manager along with classics like functions, loops, and handling user input.
More Rust-specific concepts like macros and pattern matching will also be introduced.
Check out these
community notes for this course on Github
.
Next Steps:
Course Content
Install Rust
Compile and run a Rust program from scratch
Create a Rust package with the Cargo package manager
Compile and run a Rust program using Cargo
Variables and Mutability in Rust
Output multiple variables using println!() in Rust
Write and call a function in Rust
Understanding basic Ownership and Borrowing in Rust
Read user input from stdin in Rust
Handle errors with unwrap() in Rust
Handle errors in Rust using expect()
Handle errors in Rust using Pattern Matching
Exit a program using std::process in Rust
Create a loop in Rust
Make your Rust code more DRY
User Reviews
Be the first to review “Write Your First Program with the Rust Language”
You must be logged in to post a review.
There are no reviews yet.