Explorar el Código

hello_world with cargo.

Lucas Stadler %!s(int64=11) %!d(string=hace) años
padre
commit
63bbea73ef
Se han modificado 3 ficheros con 13 adiciones y 0 borrados
  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
}