冬休みの自由研究2019
数年前に輪講っぽい感じで Rust の勉強をやったんだけど、wasm だったりイロイロ試したいことも増えたのでここいらでもう一度入門してみる
alacritty
https://github.com/jwilm/alacritty
Rust 製のターミナル
brew cask install alacritty
rust のセットアップ
curl https://sh.rustup.rs -sSf | sh
$HOME/.cargo/bin を $PATH に追加
nushell
https://github.com/nushell/nushell
cargo install nu
code:main.rs
fn main() {
println!("Hello, World!!");
}
rustc main.rs
code:shell
./main
Hello, World!!
code:Cargo.toml
package
name = "hello_world"
version = "0.0.1"
authors = "Takaya Kobayashi <y@kbys.tk>"
code:shell
cargo build
Compiling hello_world v0.0.1 (/Users/jigsaw/tmp/hello_world)
Finished dev unoptimized + debuginfo target(s) in 2.95s
code:shell
./target/debug/hello_world
Hello, World!!
code:shell
cargo run
Finished dev unoptimized + debuginfo target(s) in 0.00s
Running target/debug/hello_world
Hello, World!!
#20191231 #1231