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
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
Invoke for this project directory:
cargo build
Invoke this command from project directory:
cargo run
Printing current date/time:
chrono
depndency was added toCargo.toml
from https://docs.rs/chrono/0.4.6/chrono/- and example snippet was copied from https://rust-lang-nursery.github.io/rust-cookbook/datetime/parse.html#display-formatted-date-and-time
These two files were modified:
Can be still fetched using this tag: https://github.com/hpaluch/rust-hello-world/tree/t-just-hello-world
- https://doc.rust-lang.org/book/getting-started.html
- https://www.rust-lang.org/en-US/ About Mozilla's Rust language
- https://www.wired.com/2016/03/epic-story-dropboxs-exodus-amazon-cloud-empire/ DropBox using Rust