1. 安裝 Rust

    jail-app 是 jail 的名稱。
    ```
    $ jexec jail-app
    $ pkg install curl
    ```

    下載並安裝 rustup \
    `$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`

    ```
    root@jail-app:~ # curl https://sh.rustup.rs -sSf | sh
    info: downloading installer

    Welcome to Rust!

    This will download and install the official compiler for the Rust programming
    language, and its package manager, Cargo.

    It will add the cargo, rustc, rustup and other commands to Cargo's bin
    directory, located at:

      /root/.cargo/bin

    This path will then be added to your PATH environment variable by modifying the
    profile file located at:

      /root/.profile

    You can uninstall at any time with rustup self uninstall and these changes will
    be reverted.

    Current installation options:

       default host triple: x86_64-unknown-freebsd
         default toolchain: stable
      modify PATH variable: yes

    1) Proceed with installation (default)
    2) Customize installation
    3) Cancel installation
    >1
    ```

    ```
    info: installing component 'cargo'
    info: default toolchain set to 'stable'

      stable installed - rustc 1.37.0 (eae3437df 2019-08-13)


    Rust is installed now. Great!

    To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
    environment variable. Next time you log in this will be done automatically.

    To configure your current shell run source $HOME/.cargo/env
    ```

2. 設置路徑 `$HOME/.cargo/bin`
    ```
    $ vim /home/jail/jail-app/.cshrc
    set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin $HOME/.cargo/bin)
    ```

    重新載入 \
    `$ source .cshrc`

    檢查版本和默認值
    ```
    $ rustc --version
    rustc 1.37.0 (eae3437df 2019-08-13)

    $ rustup default
    stable (default)
    ```
    Rustup 資料夾 
    ```
    $ jexec jail-app
    $ cd /home/.rustup
    ```

    安裝其他版本
    ```
    $ rustup install nightly
    $ rustup install stable
    $ rustup install 1.7
    ```
    測試新安裝的版本
    ```
    $ rustup run nightly rustc --version
    rustc 1.39.0-nightly (521d78407 2019-08-25)
    ```
    
    列出 Rust 工具鏈並顯示當前版本 \
    `$ rustup show`

    卸載 \
    `$ rustup toolchain uninstall nightly`

    完全卸載 \
    `$ rustup self uninstall`

    更新 \
    `$ rustup update`
    
    Cargo nightly
    ```
    $ cargo +nightly build
    $ cargo +nightly run
    ```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence