Hello World example written in Mozilla's Rust language. See https://doc.rust-lang.org/book/getting-started.html
Find a file
ardocrat 600f471ac7
Some checks failed
/ version (push) Successful in 7s
/ release (push) Failing after 5m1s
Update .forgejo/workflows/release.yaml
2025-10-28 22:20:13 +03:00
.forgejo/workflows Update .forgejo/workflows/release.yaml 2025-10-28 22:20:13 +03:00
linux/Grim.AppDir Upload files to "linux/Grim.AppDir" 2025-10-22 16:32:01 +03:00
macos/Grim.app/Contents Add macos/Grim.app/Contents/MacOS/.gitignore 2025-10-24 09:04:00 +03:00
src Print date/time in various formats 2019-06-05 13:23:50 +02:00
.gitignore no lock 2025-10-28 19:40:27 +03:00
Cargo.lock build: update cargo 2025-10-28 20:19:30 +03:00
Cargo.toml Update Cargo.toml 2025-10-28 22:06:37 +03:00
demo.yaml Add demo.yaml 2025-10-21 21:02:32 +03:00
README.md Show modifications for date/time 2019-06-05 13:28:22 +02:00

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