book icon indicating copy to clipboard operation
book copied to clipboard

The missing chapter: Security

Open Odepax opened this issue 11 months ago • 1 comments

I've just started reading the book. After glimpsing at the table of contents, I noticed the absence of a chapter dedicated to security.

Same for networking, now I've noticed.

Is this intentional? If so, what is the rationale for leaving out these two chapters?

Thank you.

Odepax avatar May 10 '25 15:05 Odepax

absence of a chapter

Note that the official book only recently got a dedicated chapter for async. My own book has no async and macros chapter at all, it might never got them, and still has already 500 pages :-)

If you are an expert for security and networking, feel free to write those chapters. I would guess that there is a small change that it could be integrated into the official book, if your text really satisfies highest quality criteria. And if the book maintainers should decide to not enclosing your text, you could always publish it as a separate work. Actually, I would expect that the topics security and networking are quite general, and not that much Rust specific, so including them in a beginner Rust book would not make that much sense.

StefanSalewski avatar May 16 '25 20:05 StefanSalewski

Yes, the book is already long!! While I agree security is important, this book aims to introduce the Rust language and can't cover every possible use of the language. Security is very context-dependent.

Additionally, networking is currently done largely through the use of crates, and we're trying to minimize the use of crates in the book.

So thank you for the suggestion, but I think these topics are best handled by supplementary resources rather than this book.

carols10cents avatar Oct 24 '25 15:10 carols10cents