mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 12:19:18 +00:00
finished chapter 1, hello world and hello cargo. I like cargo...
This commit is contained in:
parent
96fc301764
commit
5cd8431ba7
7
projects/hello_cargo/Cargo.lock
generated
Normal file
7
projects/hello_cargo/Cargo.lock
generated
Normal 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"
|
||||
8
projects/hello_cargo/Cargo.toml
Normal file
8
projects/hello_cargo/Cargo.toml
Normal 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]
|
||||
3
projects/hello_cargo/src/main.rs
Normal file
3
projects/hello_cargo/src/main.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
BIN
projects/hello_world/main
Executable file
BIN
projects/hello_world/main
Executable file
Binary file not shown.
4
projects/hello_world/main.rs
Normal file
4
projects/hello_world/main.rs
Normal file
@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
// ! means calling a macro instead of a normal function
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user