Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Rust Standard Library Cookbook

You're reading from   Rust Standard Library Cookbook Over 75 recipes to leverage the power of Rust

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788623926
Length 360 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Jan Hohenheim Jan Hohenheim
Author Profile Icon Jan Hohenheim
Jan Hohenheim
Daniel Durante Daniel Durante
Author Profile Icon Daniel Durante
Daniel Durante
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Learning the Basics FREE CHAPTER 2. Working with Collections 3. Handling Files and the Filesystem 4. Serialization 5. Advanced Data Structures 6. Handling Errors 7. Parallelism and Rayon 8. Working with Futures 9. Networking 10. Using Experimental Nightly Features 11. Other Books You May Enjoy

What this book covers

Chapter 1, Learning the Basics, builds a strong foundation of fundamental principles and techniques that are useful in all kinds of situations. It will also show you how to accept user input on the command line so that you can write, all the coming chapters in an interactive way if you wanted to.

Chapter 2, Working with Collections, gives you a comprehensive overview of all the major data collections in Rust, which includes illustrations of how data is stored in your RAM so that you're ready to choose the right collection for the right task.

Chapter 3, Handling Files and the Filesystem, shows you how to connect your existing tools with the filesystem, allowing you to store, read, and search files on your computer. We will also learn how to compress data in order to send it efficiently over the internet.

Chapter 4, Serialization, introduces you to today's most common data formats and how to (de)serialize them in Rust, enabling you to connect your programs to many services by communicating across tools.

Chapter 5, Advanced Data Structures, builds a foundation for the chapters to come by providing useful information about general modules and Rust's smart pointers. You will also learn how to generate code for annotated structures at compile time by using custom #[derive()] statements.

Chapter 6, Handling Errors, teaches you about Rust's error-handling concept and how to interact seamlessly with it by creating custom errors and loggers for your use case. We will also look at how to design structures in a way that cleans up a user's resources without them noticing.

Chapter 7, Parallelism and Rayon, brings you to the world of multithreading and proves to you that Rust really gives you fearless concurrency. You will learn how to effortlessly adapt your algorithms in order to use the full power of your CPU.

Chapter 8, Working with Futures, introduces you to asynchronous concepts for your program and prepares you for all libraries that work with futures, which are Rust's version of tasks that can run in the background of your program.

Chapter 9, Networking, helps connect you to the internet by teaching you how to set up low-level servers, respond to requests in different protocols, and communicate with the World Wide Web.

Chapter 10, Using Experimental Nightly Features, ensures that you stay ahead in your knowledge of Rust. It will show you tomorrow's way of programming by giving you a tour of the most anticipated features that are still considered unstable.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image