Parcourir la Source

hello_world with cargo.

Lucas Stadler 11 ans auparavant
Parent
commit
63bbea73ef
3 fichiers modifiés avec 13 ajouts et 0 suppressions
  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

1
target

+ 9 - 0
rust/guide/Cargo.toml

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

1
fn main() {
2
	println!("Hello, World!")
3
}