1
votes

The Rust Programming Language book (ISBN 9781593278281) has a link on page xxvii to download the source code for the files used in the book here: https://www.nostarch.com/rust

The link is no longer there so I assume that link has been removed since the Rust book is still a work in progress. I did find the source code for actually making the book itself on GitHub, but not the .rs files used as examples in the book.

Was I misunderstanding that the link mentioned in the book was only for building the most recent copy of the Rust book itself OR was there an actual repository of the .rs files that were used in the examples from the book.

I have searched over GitHub but have not found an actual repo of .rs files used as examples in the Rust book. If one does exist, please post a link to it. (I have however stumbled across a lot of other good info I have saved such as rustlings).

1
I would recommend you to ask this question in the rust user forum because I know that the authors of the book check the forum very regularly.hellow
The source code for the book content seems to be here: github.com/rust-lang/book but I don't see code samplesUltrasaurus
seems like others have the same request: github.com/rust-lang/book/issues/1889Ultrasaurus

1 Answers

1
votes

Here is the link to get the source code files: https://github.com/rust-lang/book/tree/extract-files

Download the ZIP file by clicking "Clone or Download" button. Once the ZIP file is extracted the source code is here: /book-extract-files/book-extract-files/listings

Thanks to Ultrasaurus for giving me the initial link several months ago to find this.