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!

reference:

  1. The Cargo Book
Published 669 original articles · praised 194 · 1.27 million views

Guess you like

Origin blog.csdn.net/u010953692/article/details/105485055