Create a hello world program in cargo
This commit is contained in:
parent
aa6f71d657
commit
2cba306b8d
4 changed files with 16 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -4,10 +4,6 @@
|
|||
debug/
|
||||
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
|
||||
|
||||
|
|
7
hello_cargo/Cargo.lock
generated
Normal file
7
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"
|
6
hello_cargo/Cargo.toml
Normal file
6
hello_cargo/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "hello_cargo"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
3
hello_cargo/src/main.rs
Normal file
3
hello_cargo/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
Loading…
Reference in a new issue