$ dcom run rust cargo new guessing_game --bin
$ ls guessing_game/*
guessing_game/Cargo.toml
guessing_game/src:
main.rs
$ mv guessing_game/* .
# build
$ dcom run rust cargo build
Compiling guessing_game v0.1.0 (file:///code)
Finished dev [unoptimized + debuginfo] target(s) in 2.21 secs
# build and run
$ dcom run rust cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `target/debug/guessing_game`
Hello, world!
-
Notifications
You must be signed in to change notification settings - Fork 0
tkhr0/hello-rust
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
https://rust-lang-ja.github.io/the-rust-programming-language-ja/1.6/book/guessing-game.html
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published