Stage 10.3: Writing A Program
A program has a root module in a file called main.rs.
You can use cargo to create a new program, e. g.
cargo new my-program
.
This will create a src/main.rs file for you.
A program has a root module in a file called main.rs.
You can use cargo to create a new program, e. g.
cargo new my-program
.
This will create a src/main.rs file for you.