rust hello world

rust hello world

1,rust hello world

$ mkdir rust-tutorial
$ cd rust-tutorial/
$ cargo new hello-world
     Created binary (application) `hello-world` package
$ cargo run
   Compiling hello-world v0.1.0 (/Users/y50/rust-tutorial/hello-world)
    Finished dev [unoptimized + debuginfo] target(s) in 3.42s
     Running `/Users/y50/rust-tutorial/hello-world/target/debug/hello-world`
Hello, world!

参考:

  1. The Cargo Book
发布了669 篇原创文章 · 获赞 194 · 访问量 127万+

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/105485055