- eBook:Learning Rust: A comprehensive guide to writing Rust applications
- Author:Paul Johnson, Vesa Kaihlavirta
- Data:November 24, 2017
- Pages:308 pages
- Format:PDF, ePUB
- Get started with the language to build scalable and high performance applications
- This book will help C#/C++ developers gain better performance and memory management
- Discover the power of Rust when developing concurrent applications for large and scalable software
Book DescriptionRust is a highly concurrent and high performance language that focuses on safety and speed, memory management, and writing clean code. It also guarantees thread safety, and its aim is to improve the performance of existing applications. Its potential is shown by the fact that it has been backed by Mozilla to solve the critical problem of concurrency.
Learning Rust will teach you to build concurrent, fast, and robust applications. From learning the basic syntax to writing complex functions, this book will is your one stop guide to get up to speed with the fundamentals of Rust programming. We will cover the essentials of the language, including variables, procedures, output, compiling, installing, and memory handling.
You will learn how to write object-oriented code, work with generics, conduct pattern matching, and build macros. You will get to know how to communicate with users and other services, as well as getting to grips with generics, scoping, and more advanced conditions. You will also discover how to extend the compilation unit in Rust.
By the end of this book, you will be able to create a complex application in Rust to move forward with.
What you will learn
- Set up Rust for Windows, Linux, and OS X
- Write effective code using Rust
- Expand your Rust applications using libraries
- Interface existing non-Rust libraries with your Rust applications
- Use the standard library within your applications
- Understand memory management within Rust and speed efficiency when passing variables
- Create more complex data types
- Study concurrency in Rust with multi-threaded applications and sync threading techniques to improve the performance of an application problem
Chapter 2: Variables
Chapter 3: Input and Output
Chapter 4: Conditions, Recursion, and Loops
Chapter 5: Remember, Remember
Chapter 6: Creating Your Own Rust Applications
Chapter 7: Matching and Structures
Chapter 8: The Rust Application Lifetime
Chapter 9: Introducing Generics, Impl, and Traits
Chapter 10: Creating Your Own Crate
Chapter 11: Concurrency in Rust
Chapter 12: Now It's Your Turn!
Chapter 13: The Standard Library
Chapter 14: Foreign Function Interfaces