Skip to content

Commit

Permalink
implements hello Cargo refs #3
Browse files Browse the repository at this point in the history
  • Loading branch information
euledge committed Feb 6, 2019
1 parent bdfd91e commit d7509b9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Created by https://www.gitignore.io/api/rust
# Edit at https://www.gitignore.io/?templates=rust

### Rust ###
# Generated by Cargo
# will have compiled files and executables
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# End of https://www.gitignore.io/api/rust
16 changes: 16 additions & 0 deletions Chapter1.3/hello_cargo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Created by https://www.gitignore.io/api/rust
# Edit at https://www.gitignore.io/?templates=rust

### Rust ###
# Generated by Cargo
# will have compiled files and executables
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# End of https://www.gitignore.io/api/rust
7 changes: 7 additions & 0 deletions Chapter1.3/hello_cargo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "hello_cargo"
version = "0.1.0"
authors = ["euledge"]
edition = "2018"

[dependencies]
3 changes: 3 additions & 0 deletions Chapter1.3/hello_cargo/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit d7509b9

Please sign in to comment.