Skip to content

Commit fc6dd7a

Browse files
committed
Update README; add installing cargo-generate section
1 parent b9d9f3a commit fc6dd7a

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

README.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,45 @@
1515

1616
## `ja`テンプレートの内容
1717

18-
**TODO** もう少し詳しく書く
18+
**TODO** もう少し丁寧に書く
1919

2020
- AtCoder 2019年言語アップデート後の環境向け
2121
- Rust 1.35.0
22-
22+
- `rustup`でインストールされていることを前提にしている
2323

2424
## 使いかた
2525

2626
### 準備:cargo-generateのインストール
2727

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+
```
2957

3058

3159
### パッケージの生成
@@ -114,7 +142,7 @@ $ cargo generate --name abc086c \
114142
## 使用可能なクレート
115143

116144
AtCoderの環境では、[`Cargo.toml`][cargo-toml-file]にあらかじめ書かれているクレートのみが使用できます。
117-
それら以外のクレートを追加するとコンパイルエラーになりますので注意してください
145+
それら以外のクレートを追加すると、手元ではコンパイルできてもAtCoderの環境ではコンパイルエラーになりますので注意してください
118146
またクレートのバージョンも固定されており、変更できません。
119147

120148

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy