Skip to content

Commit 16e5bae

Browse files
committed
Add Cargo packages: otenki, sqrt and trip-analyzer
1 parent eb5229a commit 16e5bae

30 files changed

+4200
-7
lines changed

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# Generated by Cargo
21
# will have compiled files and executables
32
/target/
43

5-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7-
Cargo.lock
8-
9-
# These are backup files generated by rustfmt
4+
# These are backup files generated by rustfmt, emacs, etc.
105
**/*.rs.bk
6+
*~

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"cSpell.words": [
3+
"INFILE",
4+
"Kawano",
5+
"Tatsuya",
6+
"datetime",
7+
"dropoff",
8+
"hdhistogram",
9+
"hdrhistogram",
10+
"otenki",
11+
"reqwest",
12+
"serde",
13+
"tpep"
14+
]
15+
}

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1-
# shellmag-2020-02
1+
# シェルスクリプトマガジン掲載記事 『はじめてのRust』 サンプルコード集
2+
3+
このリポジトリには、シェルスクリプトマガジン Vol. 64 に掲載された『はじめてのRust』で使用するサンプルコードが収録されています。
4+
5+
**シェルスクリプトマガジン**</br>
6+
[Vol. 64 2020年2月号][shellmag-vol-64]</br>
7+
特集2 『はじめてのRust』</br>
8+
執筆者:河野 達也(かわの たつや)</br>
9+
ページ数:24ページ
10+
11+
[shellmag-vol-64]: https://shell-mag.com/vol-64/
12+
13+
## 収録されているRustパッケージ
14+
15+
| パッケージ名 | 掲載箇所 | 内容 |
16+
|:--|:--|:--|
17+
| [otenki (reqwest 0.9)][otenki-req09] | Part 1の図1 | reqwestクレート 0.9を使って「Weather Hacks お天気サービス」から東京の天気予報を取得する。(ごく簡単なもの) |
18+
| [otenki (reqwest 0.10)][otenki-req010] | 非掲載 | 上のプログラムを`async/.await`時代のreqwestクレート 0.10に対応させたもの |
19+
| [sqrt][sqrt] | Part 1の「はじめてのRustプログラム」の章 | ニュートン法で平方根の近似値を求める |
20+
| [trip-analyzer][trip-analyzer] | Part 2 「コマンドラインプログラムを作ろう」 | ニューヨーク市のタクシー&リムジン委員会が公開している乗車記録を分析し、マンハッタン中心部からJFK国際空港までの所要時間を時間帯ごとに集計する。(利用クレート:chrono, clap, csv, hdhistogram, serde, serde_json) |
21+
22+
パッケージの詳しい内容や実行方法については、パッケージ名のリンクをクリックして、そのパッケージのREADME.mdを参照してください。
23+
24+
[otenki-req09]: ./otenki-req09
25+
[otenki-req010]: ./otenki-req010
26+
[sqrt]: ./sqrt
27+
[trip-analyzer]: ./trip-analyzer
28+
29+
## 変更履歴(主なもの)
30+
31+
| 日付 | Gitタグ | 内容 |
32+
|:--|:--|:--|
33+
| 2020-01-24 | 1.0.0 | サンプルコードを公開しました |

otenki-req010/.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"reqwest"
4+
]
5+
}

0 commit comments

Comments
 (0)