diff --git a/README.md b/README.md index 45509f3..3fd25e3 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,26 @@ A collection of the examples/exercices/... found in the rust tutorial "The Book" Interesting commands -------------------- +### Creating ### + +We can create a new package/application with: + +``` +$> cargo new +``` + +An application has main.rs as its crate root. + +We can also create a new library: + +``` +$> cargo new --lib +``` + +A library has lib.rs as its crate root. + +These are not mutually exclusive, we can have a library and application in the same package! + ### Run ### Running an application.