brew cask install alacritty
curl https://sh.rustup.rs -sSf | sh
$HOME/.cargo/bin
を $PATH
に追加cargo install nu
main.rs
fn main() {
println!("Hello, World!!");
}
rustc main.rs
shell
./main
Hello, World!!
Cargo.toml
[package]
name = "hello_world"
version = "0.0.1"
authors = [ "Takaya Kobayashi <[email protected]>" ]
shell
cargo build
Compiling hello_world v0.0.1 (/Users/jigsaw/tmp/hello_world)
Finished dev [unoptimized + debuginfo] target(s) in 2.95s
shell
./target/debug/hello_world
Hello, World!!
shell
cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Running `target/debug/hello_world`
Hello, World!!