Rust dev-dependencies and dependencies

In any codebase, some codes are not for the end-users. Meaning, they do not become part of the final application – be it for QA or production environment. They are

Ways to Create Temporary Files In Rust

Creating temporary files in Rust is sometimes essential when we need to use the files once or cache data for a short time. We then let the operating system delete

Actix-Web In Ubuntu Docker Container Not Accessible

An Actix-Web application in an Ubuntu Docker container may not be accessible from the host operating system. For non-production codes and configuration, it may be due to two factors. Actix-Web

Deploy Actix-Web In Docker Container

We can deploy a Rust application based on the Actix-Web framework in a Docker container when we are coding in Windows. In this post, we compile Rust codes on Windows

Send HTTP Responses From Actix-Web

Learning how to send HTTP responses from Actix-web to clients will help us craft the responses according to our needs. For instance, we could send JSON responses for specific URIs.

The Into and Unwrap Methods In Rust

Developers new to Rust probably have encountered the into and unwrap method calls several times in sample codes. At first sight, these calls may appear puzzling to them. So, where

Working with Actix-Web HTTP Requests

When working with Actix-Web, we sometimes need to access incoming HTTP requests to inspect for some values. In that case, we need to use the HttpRequest struct either in request

Actix-Web Basic And Bearer Authentication Examples

This post has code examples for Actix-Web Basic and Bearer authentications. In a Basic authentication scheme, a client transmits credentials as user Id and password pairs in base64 format. Meanwhile,

Show Rust Dependencies Using Cargo

It is now possible to show Rust dependencies using Cargo. Before Rust 1.44.0, there was not a built-in method to display a dependency graph. There was a plugin, though, called

Swap Between Vec Elements in Rust

Swapping between Vec elements in Rust can be a little tricky. The get method returns Option<&T>, and the lone swap method accepts an index and a value – not a reference.