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
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 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.
Rust REST API, Actix-web, PostgreSQL – Part 3: The Codes
We had an overview of the project structure. This post shows the codes of the files mentioned in the previous post.
Rust – Drop Trait To Run Codes After Instance is Destroyed
In Rust, we can run codes when an instance is about to be destroyed. This post briefly demonstrates how to perform just that.
How to Install Rust on Windows 10 The Easy And Painless Way
This post shows how to install Rust on Windows 10. There are two ways to do this – through rustup-init.exe and curl within the Windows Subsystem for Linux. This post does that former. Requirements To start with, we use the