The best way to get started with a new programming language is to write some code.

The first thing we need is a project, so letís start by creating one:

$ mkdir hello-rust $ cd hello-rust/ $ cargo init –bin Created binary (application) `hello` project $ ls Cargo.toml src target

Cargo created two files for us: the Cargo.toml file that contains metadata about our project and the src directory which holds all of our source code. The target directory will be used later when we compile our application into an executable but it can safely be ignored for now

Back to Main

Subscribe for the latest news:
%d bloggers like this: