Merge pull request #1 from tobyatgithub/chap1.0

finished chapter 1, hello world and hello cargo. I like cargo...
This commit is contained in:
TobyatLarge 2021-08-31 16:28:27 -07:00 committed by GitHub
commit 40568af5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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!");
}