Book Image

Creative Projects for Rust Programmers

By : Carlo Milanesi
Book Image

Creative Projects for Rust Programmers

By: Carlo Milanesi

Overview of this book

Rust is a community-built language that solves pain points present in many other languages, thus improving performance and safety. In this book, you will explore the latest features of Rust by building robust applications across different domains and platforms. The book gets you up and running with high-quality open source libraries and frameworks available in the Rust ecosystem that can help you to develop efficient applications with Rust. You'll learn how to build projects in domains such as data access, RESTful web services, web applications, 2D games for web and desktop, interpreters and compilers, emulators, and Linux Kernel modules. For each of these application types, you'll use frameworks such as Actix, Tera, Yew, Quicksilver, ggez, and nom. This book will not only help you to build on your knowledge of Rust but also help you to choose an appropriate framework for building your project. By the end of this Rust book, you will have learned how to build fast and safe applications with Rust and have the real-world experience you need to advance in your career.
Table of Contents (14 chapters)

Chapter 5

  1. It is a standard machine language-like programming language, accepted by all major web browsers. It can be more efficient than JavaScript, but is more portable than other machine language-like programming languages.
  2. It is an architectural pattern for interactive software. It uses the concepts of model, meaning the data structure that contains the state of the application; view, meaning the code that uses the current value of the model to display the contents of a window or a portion of a window; and controller, meaning the code that is activated by user actions on the window, updating the value of the model and activating the view refresh.
  3. The specific version of the MVC implementation used by Yew and the Elm language is based on a collection of programmer-defined possible events, named messages. When the view detects such a possible event, the controller is notified by a message that's associated with the kind of event.
  4. The Yew components are the instances of an MVC pattern...