Skip to main content

Hello World

·159 words·1 min
Table of Contents
Rebuilding in Rust - This article is part of a series.
Part 2: This Article

TL;DR: I got a simple Rust web server up and running.

First steps>

First steps #

I chose the framework Actix Web to build the web server. The justification was mainly because of the benchmarking done here. Plus, there were a lot of tutorials that were built on top of this framework so it would be easier for me to follow along. The documentation was also straightforward. I first created a new Rust project with cargo new url-shortener-v2. Then, I added the Actix Web crate to my Cargo.toml and followed the Getting Started guide on the Actix Web website. At the end of the guide, you should have this:

Rust Server

Then, run cargo run on your terminal and go to localhost:8080. You should see the “Hello World” message:

Hello World

Next steps>

Next steps #

Now that we’ve got a simple hello world server running, this should be a good place to stop for now. I’ll be back with more updates soon.



Rebuilding in Rust - This article is part of a series.
Part 2: This Article