We can concatenate Strings in any programming language, including Rust, and we do it a lot. No programming language does not deal with string concatenation. However, Rust is different as it has two types of strings – String and str.
Difference Between String and str in Rust
Rust has two (type of) string values – String and str. The difference between them is huge because Rust ships with functions that cater to both string types. Rust String and str Rust String is a dynamic string type from the
Rust Ownership is Easy! Don’t Panic!
The Ownership concept in Rust is easy to grasp! Wait until you get to Rust lifetimes! When we talk about ownership in Rust, we generally mean – a variable owns a value. Seemingly nothing special, right? But the unique part
Rust HashMap Examples
This post shows Rust HashMap basic examples, particularly for beginners. A map is a type of data structure that allows us to store key-value pair data. We may have learned it from other programming languages like Java. In Rust, the
Rust Stable And Rocket 0.5 Latest Development Codes
As posted in Rust Framework Rocket Goes Stable, Rocket will be compatible with Rust Stable, starting with version 0.5. It is almost September, and we will have the new release any time soon. We can already use the latest Rocket
How To Update Rust On Windows
It is very easy to update Rust on Windows to the latest version. You could install either the stable or nightly release and update from it. For those new to Rust, I would recommend installing the stable release. Install Rust
Rust REST API, Actix-web, PostgreSQL – Part 1: Overview
This post shows a simple example of a REST API with Rust, Actix-web, and PostgreSQL and its requirements. Rust Actix-web PostgreSQL Requirements These are the items used for these posts and the subsequent ones. Windows 10 Please see How to install
Rust REST API, Actix-web, PostgreSQL – Part 2: The Project
Previously, we had a bit of an overview and prerequisites of the stuff needed to start creating a REST API example in Rust using Actix-web and PostgreSQL project. This post is the second part and gives an overview of the
Rust – Upload Files in Actix-Web Sample Application
This post is about uploading a file or multiple files to a running Actix-web application.
Rust – How to Return JSON Responses from Actix-web
Are you planning to develop an API-only backend using Rust and Actix-web? If so, you need to know how to return JSON responses from Actix-web. This post briefly shows how to create a Rust application using actix-web that returns JSON responses.