January 2019
Intermediate to advanced
520 pages
14h 32m
English
Create a new library crate (in which we will add two binaries later) called rabbit-actix:
[package]name = "rabbit-actix"version = "0.1.0"edition = "2018"
As you can see, we are using the 2018 edition of Rust. We need a pretty big pile of crates:
[dependencies]actix = "0.7"actix-web = "0.7"askama = "0.7"chrono = "0.4"env_logger = "0.6"image = "0.21"indexmap = "1.0"failure = "0.1"futures = "0.1"log = "0.4"queens-rock = "0.1"rmp-serde = "0.13"serde = "1.0"serde_derive = "1.0"serde_json = "1.0"tokio = "0.1"uuid = "0.7"
It's important to note that we use the actix framework with the actix-web crate. If you are not familiar with this crate, you can read more about it in Chapter 11, Involving Concurrency with Actors and Actix Crate ...
Read now
Unlock full access