# 开发手册
## 1. 环境准备
### Rust 安装
```
$ rustup install nightly
$ rustup toolchain list
stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin (override)
#$ rustup override set nightly
# Or
$ rustup default nightly
$ rustup toolchain list
stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc (active)
```
You can check it out in the ` rustup toolchain list `. If not, it will be automatically downloaded.
## Build
```
# 查看依赖树
$ cargo tree
$ cargo tree -d
# 编译
$ cargo build
```
## Test
### RunTest
```
$ cargo test
running 2 tests
test tests::bench_add_two ... ok
test tests::it_works ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
```