Skip to content

hpaluch/rust-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello World in Mozilla's Rust language

This is trivial Hello World example written in Mozilla's Rust language. This example comes from https://doc.rust-lang.org/book/getting-started.html

Setup

Tested on Ubuntu 18.04.2 LTS (formerly Ubuntu 16.04.1 LTS)

Install these packages on Ubuntu:

sudo apt-get install git rustc cargo

Clone this project using:

mkdir ~/projects
cd ~/projects
git clone https://github.com/hpaluch/rust-hello-world.git
cd rust-hello-world

Updating from Ubuntu 16 to Ubuntu 18: Issue this command to update to recent dependencies:

cargo update

Build

Invoke for this project directory:

cargo build

Run

Invoke this command from project directory:

cargo run

Examples

Date example

Printing current date/time:

These two files were modified:

Original hello-world

Can be still fetched using this tag: https://github.com/hpaluch/rust-hello-world/tree/t-just-hello-world

Resources

About

Hello World example written in Mozilla's Rust language. See https://doc.rust-lang.org/book/getting-started.html

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages