text
stringlengths
0
180
Heading: Foreword
Paragraph 1: It wasn’t always so clear, but the Rust programming language is fundamentally
about empowerment: no matter what kind of code you are writing now, Rust
empowers you to reach farther, to program with confidence in a wider variety of
domains than you did before.
Paragraph 2: Take, for example, “systems-level” work that deals with low-level details of
memory management, data representation, and concurrency. Traditionally, this
realm of programming is seen as arcane, accessible only to a select few who
have devoted the necessary years learning to avoid its infamous pitfalls. And
even those who practice it do so with caution, lest their code be open to
exploits, crashes, or corruption.
Paragraph 3: Rust breaks down these barriers by eliminating the old pitfalls and providing a
friendly, polished set of tools to help you along the way. Programmers who need
to “dip down” into lower-level control can do so with Rust, without taking on
the customary risk of crashes or security holes, and without having to learn
the fine points of a fickle toolchain. Better yet, the language is designed to
guide you naturally towards reliable code that is efficient in terms of speed
and memory usage.
Paragraph 4: Programmers who are already working with low-level code can use Rust to raise
their ambitions. For example, introducing parallelism in Rust is a relatively
low-risk operation: the compiler will catch the classical mistakes for you. And
you can tackle more aggressive optimizations in your code with the confidence
that you won’t accidentally introduce crashes or vulnerabilities.
Paragraph 5: But Rust isn’t limited to low-level systems programming. It’s expressive and
ergonomic enough to make CLI apps, web servers, and many other kinds of code
quite pleasant to write — you’ll find simple examples of both later in the
book. Working with Rust allows you to build skills that transfer from one
domain to another; you can learn Rust by writing a web app, then apply those
same skills to target your Raspberry Pi.
Paragraph 6: This book fully embraces the potential of Rust to empower its users. It’s a
friendly and approachable text intended to help you level up not just your
knowledge of Rust, but also your reach and confidence as a programmer in
general. So dive in, get ready to learn—and welcome to the Rust community!
Paragraph 7: — Nicholas Matsakis and Aaron Turon
Introduction
Introduction Paragraph 1: Note: This edition of the book is the same as The Rust Programming
Language available in print and ebook format from No Starch
Press .
Introduction Paragraph 2: Welcome to The Rust Programming Language , an introductory book about Rust.
The Rust programming language helps you write faster, more reliable software.
High-level ergonomics and low-level control are often at odds in programming
language design; Rust challenges that conflict. Through balancing powerful
technical capacity and a great developer experience, Rust gives you the option
to control low-level details (such as memory usage) without all the hassle
traditionally associated with such control.
Introduction Paragraph 3: Who Rust Is For
Rust is ideal for many people for a variety of reasons. Let’s look at a few of
the most important groups.
Introduction Paragraph 4: Teams of Developers
Rust is proving to be a productive tool for collaborating among large teams of
developers with varying levels of systems programming knowledge. Low-level code
is prone to various subtle bugs, which in most other languages can be caught
only through extensive testing and careful code review by experienced
developers. In Rust, the compiler plays a gatekeeper role by refusing to
compile code with these elusive bugs, including concurrency bugs. By working
alongside the compiler, the team can spend their time focusing on the program’s
logic rather than chasing down bugs.
Introduction Paragraph 5: Rust also brings contemporary developer tools to the systems programming world:
Introduction Paragraph 6: Cargo, the included dependency manager and build tool, makes adding,
compiling, and managing dependencies painless and consistent across the Rust
ecosystem. The Rustfmt formatting tool ensures a consistent coding style across
developers. The rust-analyzer powers Integrated Development Environment (IDE)
integration for code completion and inline error messages.
Introduction Paragraph 7: Cargo, the included dependency manager and build tool, makes adding,
compiling, and managing dependencies painless and consistent across the Rust
ecosystem.
Introduction Paragraph 8: The Rustfmt formatting tool ensures a consistent coding style across
developers.
Introduction Paragraph 9: The rust-analyzer powers Integrated Development Environment (IDE)
integration for code completion and inline error messages.
Introduction Paragraph 10: By using these and other tools in the Rust ecosystem, developers can be
productive while writing systems-level code.
Introduction Paragraph 11: Students
Rust is for students and those who are interested in learning about systems
concepts. Using Rust, many people have learned about topics like operating
systems development. The community is very welcoming and happy to answer
student questions. Through efforts such as this book, the Rust teams want to
make systems concepts more accessible to more people, especially those new to
programming.
Introduction Paragraph 12: Companies

No dataset card yet

Downloads last month
3