O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise - starting our project

  1. Initialize a Cargo binary project, call it whatever you want (but I will name the game fanstr-buigam, short for fantasy strategy building game).

Solution:

cargo init fanstrbuigam -bin
  1. Check cargo.toml and fill in your name, e-mail, and description of the project.

SolutionCargo.toml should have name, e-mail, description in the [package] section.

  1. Try out the Cargo build, test, and run commands.

Solution: cargo build/cargo test/cargo run.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required