Book description
Start building fast and robust applications with the power of Rust by your side
About This Book
- 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
Who This Book Is For
The book is for absolute beginners to Rust, who want to build high performance, concurrent applications for their projects. It is suitable for developers who have a basic knowledge of programming and developers who are using the C#/C++ language to write their applications. No knowledge of Rust is expected.
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
In Detail
Rust 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.
Style and approach
This comprehensive book will focus on the Rust syntax, functions, data types, and conducting pattern matching for programmers. It is divided into three parts and each part of the book has an objective to enable the readers to create their own applications at an appropriate level, ultimately towards creating complex applications.
Table of contents
- Preface
- Introducing and Installing Rust
-
Variables
- Variable mutability
- Summary
- Input and Output
- Conditions, Recursion, and Loops
- Remember, Remember
- Creating Your Own Rust Applications
- Matching and Structures
- The Rust Application Lifetime
- Introducing Generics, Impl, and Traits
- Creating Your Own Crate
- Concurrency in Rust
- Now It's Your Turn!
-
The Standard Library
- Chapter format
- What is the standard library?
-
The standard modules
- std::Any
- std::ascii
- std::borrow
- std::boxed
- std::cell
- std::char
- std::clone
- std::cmp
- std::collections
- std::convert
- std::default
- std:env
- std:error
- std::f32
- std::f64
- std:ffi
- std::fmt
- std::fs
- std::hash
- std::i8
- std::i16
- std::i32
- std::i64
- std::io
- std::isize
- std::iter
- std::marker
- std::mem
- std:net
- std::num
- std::os
- std::panic
- std::path
- std::process
- std::ptr
- std::slice
- std::str
- std::string
- std::sync
- std::thread
- std::time
- std::u8
- std::u16
- std::u32
- std::u64
- std::usize
- std::vec
- Summary
-
Foreign Function Interfaces
- Introducing our simple library
- The three-step program
- Summary
Product information
- Title: Learning Rust
- Author(s):
- Release date: November 2017
- Publisher(s): Packt Publishing
- ISBN: 9781785884306
You might also like
book
Hands-on Rust
Rust is an exciting new programming language combining the power of C with memory safety, fearless …
book
Rust Web Programming
Adopt the Rust programming language by learning how to build fully functional web applications and services …
book
Beginning Rust: Get Started with Rust 2021 Edition
Learn to program with Rust 2021 Edition, in an easy, step-by-step manner on Unix, the Linux …
video
Rust in Motion
See it. Do it. Learn it! In Rust in Motion, premier Rust experts Carol Nichols and …