Selaa lähdekoodia

hello_world with cargo.

Lucas Stadler 11 vuotta sitten
vanhempi
commit
63bbea73ef
3 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  1. 1 0
      rust/guide/.gitignore
  2. 9 0
      rust/guide/Cargo.toml
  3. 3 0
      rust/guide/src/hello_world.rs

+ 1 - 0
rust/guide/.gitignore

@ -0,0 +1 @@
1
target

+ 9 - 0
rust/guide/Cargo.toml

@ -0,0 +1,9 @@
1
[package]
2
3
name = "hello_world"
4
version = "0.1.0"
5
authors = ["lu@papill0n.org"]
6
7
[[bin]]
8
9
name = "hello_world"

+ 3 - 0
rust/guide/src/hello_world.rs

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