June 2021
Beginner
344 pages
8h 9m
English
Creating a program that greets the user with “Hello, World” is a very popular way to kick the tires of a new programming language. Comparing “Hello, World” programs in different languages is a great way to get a feel for the syntax of a language without diving too deeply into specifics. The Hello World Collection provides “Hello, World” in 578 different programming languages.[8]
When you start a project with cargo new, Rust creates “Hello, World” for you. It also creates the necessary metadata for Cargo to be able to run your program.
Open the Cargo.toml file created in your “Hello” project:
| | [package] |
| | name = "hello" |
| | version = "0.1.0" |
| | authors = ["Your ... |
Read now
Unlock full access