This step-by-step tutorial will teach you how to code in 2 files (or more!) in Rust. You'll learn how to define functions and modules in separate files, and how to import them into your main file. You'll also learn about different ways to organize your Rust code. By the end of this tutorial, you'll be able to code in multiple files in Rust like a pro.

Welcome back to video number 16 in this Rust tutorial series! In this video, we learn how we can write code in a separate file and incorporate that into another Rust file. For example, we can create a function in one file and call it in another!

📖Resources📖
Rust Online Book: https://doc.rust-lang.org/book/

💻Code💻
https://github.com/code-of-the-future/Rust-Programming-Crash-Course/tree/main/Tutorial%2014

#rust 

Coding in 2 Files (or more!) in Rust: A Step-by-Step Tutorial
10.05 GEEK