finished chapter 1, hello world and hello cargo. I like cargo...

This commit is contained in:
tobyatgithub 2021-08-31 16:27:06 -07:00
parent 96fc301764
commit 5cd8431ba7
5 changed files with 22 additions and 0 deletions

7
projects/hello_cargo/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "hello_cargo"
version = "0.1.0"

View File

@ -0,0 +1,8 @@
[package]
name = "hello_cargo"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

BIN
projects/hello_world/main Executable file

Binary file not shown.

View File

@ -0,0 +1,4 @@
fn main() {
// ! means calling a macro instead of a normal function
println!("Hello, world!");
}