cargo new name --bin // binary cargo new name --lib // library // the default creation is a binary so you can also write cargo new name // binary