首页 > 代码库 > Rust hello world !

Rust hello world !

特点: 安全,速度,并发

文件:hello_world.rs

代码:

1 fn main() {
2     println!("hello world!");
3 }

执行:rustc hello_world.rs

执行:./hello_world

结果:屏幕上就出现字符串:hello world

 

Rust hello world !