Skip to content

Commit e94c537

Browse files
authored
Merge pull request #185 from tatsuya6502/update-title-page
タイトルページのアップデートとmdbookの設定変更
2 parents be51818 + 06e611c commit e94c537

File tree

4 files changed

+19
-60
lines changed

4 files changed

+19
-60
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- run: rustc -V
1414
- run: mdbook -V
1515
- run: mdbook test
16-
- run: mdbook build
16+
- run: mdbook build --dest-dir docs
1717
- run: cargo run --bin lfp src
1818
# TODO: Run link2print here. (See ci/build.sh on the master branch)
1919
# - run: TODO

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ book/
44
.DS_Store
55
target
66
tmp
7-

book.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title = "The Rust Programming Language 日本語版"
33
author = "Steve Klabnik and Carol Nichols, with Contributions from the Rust Community"
44
language = "ja"
55

6-
[build]
7-
build-dir = "docs"
8-
96
[output.html]
107
additional-css = ["ferris.css", "theme/2018-edition.css", "theme/em-to-bold.css"]
118
additional-js = ["ferris.js"]

src/title-page.md

Lines changed: 18 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,62 +6,15 @@
66
<!--
77
*by Steve Klabnik and Carol Nichols, with contributions from the Rust Community*
88
-->
9-
*著:Steve Klabnik, Carol Nichols, 貢献:Rustコミュニティ*
9+
*著:Steve KlabnikCarol Nichols貢献:Rustコミュニティ*
1010

1111
<!--
12-
This version of the text assumes you’re using Rust 1.41.0 or later with
13-
`edition="2018"` in *Cargo.toml* of all projects to use Rust 2018 Edition
14-
idioms. See the [“Installation” section of Chapter 1][install]
15-
to install or update Rust, and see the new [Appendix E][editions]
16-
for information on editions.
12+
This version of the text assumes you’re using Rust 1.58 (released 2022-01-13)
13+
or later. See the [“Installation” section of Chapter 1][install]
14+
to install or update Rust.
1715
-->
18-
このテキストのこの版では、Rust 2018 Editionのイディオムを使うため、Rust 1.41.0かそれ以降を使っており、すべてのプロジェクトの *Cargo.toml*`edition="2018"` とあることを前提にしています。
19-
Rustをインストールしたりアップデートするには[1章の「インストール」節][install]を、editionに関しては[付録E][editions]を読んでください。
20-
21-
<!--
22-
The 2018 Edition of the Rust language includes a number of improvements that
23-
make Rust more ergonomic and easier to learn. This iteration of the book
24-
contains a number of changes to reflect those improvements:
25-
-->
26-
Rust言語の2018 Editionには、Rustをもっと扱いやすく、学びやすくするための多くの改善点があります。
27-
それらの改善点を反映するために、今回の改版は多くの変更点を含んでいます:
28-
29-
<!--
30-
- Chapter 7, “Managing Growing Projects with Packages, Crates, and Modules,”
31-
has been mostly rewritten. The module system and the way paths work in the
32-
2018 Edition were made more consistent.
33-
- Chapter 10 has new sections titled “Traits as Parameters” and “Returning
34-
Types that Implement Traits” that explain the new `impl Trait` syntax.
35-
- Chapter 11 has a new section titled “Using `Result<T, E>` in Tests” that
36-
shows how to write tests that use the `?` operator.
37-
- The “Advanced Lifetimes” section in Chapter 19 was removed because compiler
38-
improvements have made the constructs in that section even rarer.
39-
- The previous Appendix D, “Macros,” has been expanded to include procedural
40-
macros and was moved to the “Macros” section in Chapter 19.
41-
- Appendix A, “Keywords,” also explains the new raw identifiers feature that
42-
enables code written in the 2015 Edition and the 2018 Edition to interoperate.
43-
- Appendix D is now titled “Useful Development Tools” and covers recently
44-
released tools that help you write Rust code.
45-
- We fixed a number of small errors and imprecise wording throughout the book.
46-
Thank you to the readers who reported them!
47-
-->
48-
- 7章「肥大化していくプロジェクトをパッケージ、クレート、モジュールを利用して管理する」はほとんど書き直されました。2018 Editionにおいてモジュールシステムとパスの仕組みはより一貫性を持つようになりました。
49-
- 10章には、新しい`impl Trait`構文を説明するために「引数としてのトレイト」と「トレイトを実装している型を返す」という新しい節があります。
50-
- 11章には、`?`演算子を使うテストの書き方を説明する「`Result<T, E>`をテストで使う」という新しい節があります。
51-
- 19章の「高度なライフタイム」節はなくなりました。コンパイラの改善により、この節の内容が現れることはいっそう稀になったからです。
52-
- 付録D「マクロ」は、手続き的マクロも説明するようになり、19章の「マクロ」節に移動しました。
53-
- 付録A「キーワード」では、2015 Editionと2018 Editionで書かれたコードを一緒に使えるようにしてくれる、生識別子という新しい機能も説明します。
54-
- 付録Dは "Useful Development Tools" という名前に変わり、Rustコードを書く手助けになる最近登場したツールを説明します。
55-
- 多くの細かい誤りや不正確な言葉遣いを直しました。報告してくれた読者の皆様、ありがとうございます!
56-
57-
<!--
58-
Note that any code in earlier iterations of *The Rust Programming Language*
59-
that compiled will continue to compile without `edition="2018"` in the
60-
project’s *Cargo.toml*, even as you update the Rust compiler version you’re
61-
using. That’s Rust’s backward compatibility guarantees at work!
62-
-->
63-
`edition="2018"`*Cargo.toml* に書かなければ、Rustコンパイラのバージョンをアップデートしたとしても、 *The Rust Programming Language* のこれまでの版のコードは変わらずコンパイルできるということを知っておいてください。
64-
Rustの後方互換性の約束は守られています!
16+
このテキストのこの版ではRust 1.58(2022年1月13日リリース)かそれ以降が使われていることを前提にしています。
17+
Rustをインストールしたりアップデートしたりするには[第1章の「インストール」節][install]を読んでください。
6518

6619
<!--
6720
The HTML format is available online at
@@ -70,14 +23,24 @@ and offline with installations of Rust made with `rustup`; run `rustup docs
7023
--book` to open.
7124
-->
7225
HTML版は[https://doc.rust-lang.org/stable/book/](https://doc.rust-lang.org/stable/book/)で公開されています。
73-
オフラインで見たい場合は、`rustup`でインストールしたRustを使って`rustup docs --book`としてください。
26+
オフラインのときは、`rustup`でインストールしたRustを使って`rustup docs --book`で開けます。
27+
28+
> 訳注:日本語のHTML版は[https://doc.rust-jp.rs/book-ja/](https://doc.rust-jp.rs/book-ja/)で公開されています。
29+
> `rustup`を使ってオフラインで読むことはできません。
30+
31+
<!--
32+
Several community [translations] are also available.
33+
-->
34+
また、コミュニティによるいくつかの[翻訳版][translations]もあります。
7435

7536
<!--
7637
This text is available in [paperback and ebook format from No Starch
7738
Press][nsprust].
7839
-->
79-
このテキストの[ペーパーバック版と電子書籍版はNo Starch出版][nsprust]から発売されています。
40+
このテキストの(英語版の)[ペーパーバック版と電子書籍版はNo Starch出版][nsprust]から発売されています。
41+
8042

8143
[install]: ch01-01-installation.html
8244
[editions]: appendix-05-editions.html
8345
[nsprust]: https://nostarch.com/rust
46+
[translations]: appendix-06-translation.html

0 commit comments

Comments
 (0)