@@ -180,73 +180,35 @@ <h1 id="the-rust-programming-language-日本語版"><a class="header" href="#the
180180<!--
181181*by Steve Klabnik and Carol Nichols, with contributions from the Rust Community*
182182-->
183- <p><em>著:Steve Klabnik, Carol Nichols, 貢献:Rustコミュニティ</em></p>
184- <!--
185- This version of the text assumes you’re using Rust 1.41.0 or later with
186- `edition="2018"` in *Cargo.toml* of all projects to use Rust 2018 Edition
187- idioms. See the [“Installation” section of Chapter 1][install]
188- to install or update Rust, and see the new [Appendix E][editions]
189- for information on editions.
190- -->
191- <p>このテキストのこの版では、Rust 2018 Editionのイディオムを使うため、Rust 1.41.0かそれ以降を使っており、すべてのプロジェクトの <em>Cargo.toml</em> に <code>edition="2018"</code> とあることを前提にしています。
192- Rustをインストールしたりアップデートするには<a href="ch01-01-installation.html">1章の「インストール」節</a>を、editionに関しては<a href="appendix-05-editions.html">付録E</a>を読んでください。</p>
193- <!--
194- The 2018 Edition of the Rust language includes a number of improvements that
195- make Rust more ergonomic and easier to learn. This iteration of the book
196- contains a number of changes to reflect those improvements:
197- -->
198- <p>Rust言語の2018 Editionには、Rustをもっと扱いやすく、学びやすくするための多くの改善点があります。
199- それらの改善点を反映するために、今回の改版は多くの変更点を含んでいます:</p>
200- <!--
201- - Chapter 7, “Managing Growing Projects with Packages, Crates, and Modules,”
202- has been mostly rewritten. The module system and the way paths work in the
203- 2018 Edition were made more consistent.
204- - Chapter 10 has new sections titled “Traits as Parameters” and “Returning
205- Types that Implement Traits” that explain the new `impl Trait` syntax.
206- - Chapter 11 has a new section titled “Using `Result<T, E>` in Tests” that
207- shows how to write tests that use the `?` operator.
208- - The “Advanced Lifetimes” section in Chapter 19 was removed because compiler
209- improvements have made the constructs in that section even rarer.
210- - The previous Appendix D, “Macros,” has been expanded to include procedural
211- macros and was moved to the “Macros” section in Chapter 19.
212- - Appendix A, “Keywords,” also explains the new raw identifiers feature that
213- enables code written in the 2015 Edition and the 2018 Edition to interoperate.
214- - Appendix D is now titled “Useful Development Tools” and covers recently
215- released tools that help you write Rust code.
216- - We fixed a number of small errors and imprecise wording throughout the book.
217- Thank you to the readers who reported them!
218- -->
219- <ul>
220- <li>7章「肥大化していくプロジェクトをパッケージ、クレート、モジュールを利用して管理する」はほとんど書き直されました。2018 Editionにおいてモジュールシステムとパスの仕組みはより一貫性を持つようになりました。</li>
221- <li>10章には、新しい<code>impl Trait</code>構文を説明するために「引数としてのトレイト」と「トレイトを実装している型を返す」という新しい節があります。</li>
222- <li>11章には、<code>?</code>演算子を使うテストの書き方を説明する「<code>Result<T, E></code>をテストで使う」という新しい節があります。</li>
223- <li>19章の「高度なライフタイム」節はなくなりました。コンパイラの改善により、この節の内容が現れることはいっそう稀になったからです。</li>
224- <li>付録D「マクロ」は、手続き的マクロも説明するようになり、19章の「マクロ」節に移動しました。</li>
225- <li>付録A「キーワード」では、2015 Editionと2018 Editionで書かれたコードを一緒に使えるようにしてくれる、生識別子という新しい機能も説明します。</li>
226- <li>付録Dは "Useful Development Tools" という名前に変わり、Rustコードを書く手助けになる最近登場したツールを説明します。</li>
227- <li>多くの細かい誤りや不正確な言葉遣いを直しました。報告してくれた読者の皆様、ありがとうございます!</li>
228- </ul>
183+ <p><em>著:Steve Klabnik、Carol Nichols、貢献:Rustコミュニティ</em></p>
229184<!--
230- Note that any code in earlier iterations of *The Rust Programming Language*
231- that compiled will continue to compile without `edition="2018"` in the
232- project’s *Cargo.toml*, even as you update the Rust compiler version you’re
233- using. That’s Rust’s backward compatibility guarantees at work!
185+ This version of the text assumes you’re using Rust 1.58 (released 2022-01-13)
186+ or later. See the [“Installation” section of Chapter 1][install]
187+ to install or update Rust.
234188-->
235- <p><code>edition="2018"</code> を <em>Cargo.toml</em> に書かなければ、Rustコンパイラのバージョンをアップデートしたとしても、 <em>The Rust Programming Language</em> のこれまでの版のコードは変わらずコンパイルできるということを知っておいてください 。
236- Rustの後方互換性の約束は守られています! </p>
189+ <p>このテキストのこの版ではRust 1.58(2022年1月13日リリース)かそれ以降が使われていることを前提にしています 。
190+ Rustをインストールしたりアップデートしたりするには<a href="ch01-01-installation.html">第1章の「インストール」節</a>を読んでください。 </p>
237191<!--
238192The HTML format is available online at
239193[https://doc.rust-lang.org/stable/book/](https://doc.rust-lang.org/stable/book/)
240194and offline with installations of Rust made with `rustup`; run `rustup docs
241195--book` to open.
242196-->
243197<p>HTML版は<a href="https://doc.rust-lang.org/stable/book/">https://doc.rust-lang.org/stable/book/</a>で公開されています。
244- オフラインで見たい場合は、<code>rustup</code>でインストールしたRustを使って<code>rustup docs --book</code>としてください。</p>
198+ オフラインのときは、<code>rustup</code>でインストールしたRustを使って<code>rustup docs --book</code>で開けます。</p>
199+ <blockquote>
200+ <p>訳注:日本語のHTML版は<a href="https://doc.rust-jp.rs/book-ja/">https://doc.rust-jp.rs/book-ja/</a>で公開されています。
201+ <code>rustup</code>を使ってオフラインで読むことはできません。</p>
202+ </blockquote>
203+ <!--
204+ Several community [translations] are also available.
205+ -->
206+ <p>また、コミュニティによるいくつかの<a href="appendix-06-translation.html">翻訳版</a>もあります。</p>
245207<!--
246208This text is available in [paperback and ebook format from No Starch
247209Press][nsprust].
248210-->
249- <p>このテキストの<a href="https://nostarch.com/rust">ペーパーバック版と電子書籍版はNo Starch出版</a>から発売されています。</p>
211+ <p>このテキストの(英語版の) <a href="https://nostarch.com/rust">ペーパーバック版と電子書籍版はNo Starch出版</a>から発売されています。</p>
250212<div id="chapter_begin" style="break-before: page; page-break-before: always;"></div><!--
251213# Foreword
252214-->
0 commit comments