Amazon Linux に Rust をインストール 

### インストール

```bash
amazon-linux-extras install -y rust1
```

**インストールされた内容**

```bash
Dependencies Resolved

========================================================================================================================================================================================================================================
 Package                                                Arch                                          Version                                                       Repository                                                     Size
========================================================================================================================================================================================================================================
Installing:
 cargo                                                  x86_64                                        1.61.0-2.amzn2.0.1                                            amzn2-core                                                    4.7 M
 rust                                                   x86_64                                        1.61.0-2.amzn2.0.1                                            amzn2-core                                                     52 M
Installing for dependencies:
 cpp                                                    x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                    9.2 M
 gcc                                                    x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                     22 M
 glibc-devel                                            x86_64                                        2.26-60.amzn2                                                 amzn2-core                                                    994 k
 glibc-headers                                          x86_64                                        2.26-60.amzn2                                                 amzn2-core                                                    515 k
 kernel-headers                                         x86_64                                        5.10.135-122.509.amzn2                                        amzn2extra-kernel-5.10                                        1.4 M
 libatomic                                              x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                     46 k
 libcilkrts                                             x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                     85 k
 libitm                                                 x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                     85 k
 libmpc                                                 x86_64                                        1.0.1-3.amzn2.0.2                                             amzn2-core                                                     52 k
 libmpx                                                 x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                     51 k
 libquadmath                                            x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                    189 k
 libsanitizer                                           x86_64                                        7.3.1-15.amzn2                                                amzn2-core                                                    642 k
 mpfr                                                   x86_64                                        3.1.1-4.amzn2.0.2                                             amzn2-core                                                    208 k
 rust-std-static                                        x86_64                                        1.61.0-2.amzn2.0.1                                            amzn2-core                                                     30 M

Transaction Summary
========================================================================================================================================================================================================================================
Install  2 Packages (+14 Dependent packages)

Total download size: 123 M
Installed size: 479 M
```

**インストール結果確認**

```bash
# rustc -V
rustc 1.61.0 (Red Hat 1.61.0-2.amzn2.0.1)
```

### その他

**現在、Amazon linux２ サポートしているRustバージョン**
```bash
 10  rust1=latest             enabled      \
        [ =1.22.1  =1.26.0  =1.26.1  =1.27.2  =1.31.0  =1.38.0
          =stable ]
```
最新は1.61.0です。