Rust-Programming-Cookbook/README.md

2.2 KiB

Rust Cookbook

This is the code repository for Rust Cookbook, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

If you are building concurrent applications, server-side programs, or high-performance applications, you will benefit from this language. This book comes with a lot of application-specific recipes to kick-start your development of real-world high-performance applications with the Rust programming language and integrating Rust units into your existing applications. In this book, you will find some 80 practical recipes written in Rust that will allow you to use the code samples right away in your existing applications. These recipes have been tested with stable rust compiler versions of 1.14.0 and above. This book will help you understand the core concepts of the Rust language, enabling you to develop efficient and high-performance applications by incorporating features such as zero cost abstraction and better memory management.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

 // expression
    let x_val = 5u32;

    // y block 
    let y_val = {
        let x_squared = x_val * x_val;
        let x_cube = x_squared * x_val;

        // This expression will be assigned to `y_val`
        x_cube + x_squared + x_val
    };