File tree Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
## ` ja ` テンプレートの内容
17
17
18
- ** TODO** もう少し詳しく書く
18
+ ** TODO** もう少し丁寧に書く
19
19
20
20
- AtCoder 2019年言語アップデート後の環境向け
21
21
- Rust 1.35.0
22
-
22
+ - ` rustup ` でインストールされていることを前提にしている
23
23
24
24
## 使いかた
25
25
26
26
### 準備:cargo-generateのインストール
27
27
28
- ** TODO**
28
+ cargo-generateをインストールしましょう。以下のライブラリとツールが必要です。
29
+
30
+ - openssl
31
+ - pkg-config
32
+
33
+
34
+ #### Linux (Ubuntu 18.04)
35
+
36
+ ``` console
37
+ $ sudo apt install libssl-dev pkg-config
38
+ ```
39
+
40
+ #### macOS
41
+
42
+ ** TODO** opensslとpkg-configのインストール方法を書く(Homebrew)
43
+
44
+
45
+ #### Windows MSVC
46
+
47
+ ** TODO** openssl(?)とcmakeのインストール方法を書く
48
+
49
+
50
+ #### インストール
51
+
52
+ 以下のコマンドを実行します。
53
+
54
+ ```
55
+ $ cargo install cargo-generate
56
+ ```
29
57
30
58
31
59
### パッケージの生成
@@ -114,7 +142,7 @@ $ cargo generate --name abc086c \
114
142
## 使用可能なクレート
115
143
116
144
AtCoderの環境では、[`Cargo.toml`][cargo-toml-file]にあらかじめ書かれているクレートのみが使用できます。
117
- それら以外のクレートを追加するとコンパイルエラーになりますので注意してください 。
145
+ それら以外のクレートを追加すると、手元ではコンパイルできてもAtCoderの環境ではコンパイルエラーになりますので注意してください 。
118
146
またクレートのバージョンも固定されており、変更できません。
119
147
120
148
You can’t perform that action at this time.
0 commit comments