Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, put the code in hello_world.rs
and use cargo run
.
Sometimes we’ll want to build our programs into binaries. We can do this using cargo build --release
, which creates an optimized binary.
We can then execute the built binary directly.
Now that we can run and build basic Rust programs, let’s learn more about the language.