Published in


How to start a project in Rust

Starting a new project using a new programming language is not always simple. In this article, we will learn how to start a new project in Rust.

What is Rust?

In this article I explained why Rust is the most loved programming language.

  • Tools for DevOps;
  • Web services;
  • Games;
  • IoT (Internet of Things) applications.

How was Rust created?

Rust began to be developed in Graydon Hoare’s leisure time in mid-2006. At the time, he was working at Mozilla, and the company ended up taking an interest in the new language that was similar to C++, but had more advantages.

Who uses the Rust language?

As you have seen, the creation of the language was a great achievement for Mozilla, which was soon used by many other companies.
Thus, software that is widely used today, such as Firefox, Dropbox, Yelp, Firecracker (virtualization technology used by Amazon) and Cloudflare use Rust.
But, in addition, it is present in several projects of companies and startups that seek scalable results, prioritising security and performance.

What makes this language different?

Did you know that between 2016 and 2020, the Rust language was considered the preferred language among developers, according to Stack Overflow surveys? But what explains this predilection? Here are some of the benefits of Rust. Remember that this does not mean that it is unanimous among developers, but it indicates that it is very important to dedicate yourself to study this language to have this differential in your curriculum and belong to this powerful community.


During the compilation process, Rust itself performs memory management, freeing up space until then occupied by variables that are not being used. In other languages, this function is performed by a garbage collector, so Rust demonstrates greater performance, as it allows greater speed in development.


Whenever a variable is no longer used by the application, it is automatically deleted by the language’s memory management system. This avoids errors and poor performance.


The developer who chooses Rust gains in productivity. Firstly, because the language has a very extensive documentation and full of details about its use. Secondly, because it is able to identify errors that other languages ​​do not, thanks to its intelligent compiler.


One of the advantages is also the constant update, which improves the features of the language. One of the most recent is from April 2019. It has brought improvements to the languages, making them easier to read and write.
In addition, the Rust language also runs very well in web applications due to its resourcefulness and high performance, giving projects more agility.


Overall, the Rust developer space is hot in the market. This is because startups and companies are looking for more agile and secure systems to scale their results.

Installation and development environment

To get started with Rust we have two alternatives, or using the Play Rust site which is maintained by the Rust core and is a very nice and very complete tool or by downloading the Rustup tool which is the official Rust installer. The installation will depend on your operating system, but it is very easy, on the official website we can find these options mentioned above.

Hello World

In a directory of your choice we will create a file called (the .rs extension is the Rust file extension).
Inside this file will be added the following content:

fn main() {
println!("Hello World!");

About Vaultree

Vaultree’s Encryption-in-use enables businesses of all sizes to process (search and compute) fully end-to-end encrypted data without the need to decrypt. Easy to use and integrate, Vaultree delivers peak performance without compromising security, neutralising the weak spots of traditional encryption or other Privacy Enhancing Technology (PET) based solutions. Follow Vaultree on Twitter (@Vaultree), LinkedIn, Reddit (r/Vaultree) or Visit, and sign up for a product demo and our newsletter to stay up to date on product development and company news.



Vaultree’s Encryption-in-use enables businesses of all sizes to process (search and compute) fully end-to-end encrypted data without the need to decrypt.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vaultree Tech Community

Vaultree is a revolutionary encryption startup allowing processing of fully encrypted data at run-time. Let’s create an encrypted tomorrow…together!