Emacs
rust
rustup

Rust メモ にゃ

Install & Setup

$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env

Project Structure

The Cargo Book

Project Layout

.
├── Cargo.lock
├── Cargo.toml
├── src
│   ├── bin
│   │   └── another_executable.rs
│   ├── lib.rs
│   └── main.rs
└── tests
    └── some-integration-tests.rs

First Step

First Steps with Cargo

$ cargo new hello_world --bin
$ cd hello_world
$ cargo build
$ ./target/debug/hello_world
$ cargo run

Emacs

list-packages
rust-mode -> Install
flycheck-rust -> Install