Thursday, 20 November 2025

cargo new hello_cargo

 For details on how to use cargo new type cargo new -help at the command line.

cargo new hello_cargo

creates a new directory for your project, a .git subdirectory, an src directory for your source code, and a Cargo.Toml file.   

TOML, or Tom's Obvious Minimal Language, format, is Cargo's configuration format. (TOML brands itself as "A Config File Format for Humans" and is nice, simple and neat).

It has a [package] section which configures package settings, and a [dependencies] section for any of the crates required for the package to run (crates are Rust packages).

cargo init -help

for help integrating any Rust code developed outside of Cargo.

No comments: