An open API service indexing awesome lists of open source software.

https://github.com/giof71/rust-docker-hello-world

A simple Hello, world app written with Rust, to be compiled and executed using the Rust official Docker image.
https://github.com/giof71/rust-docker-hello-world

docker hello-world helloworld helloworld-programs linux rust rust-lang starter windows windows-10

Last synced: about 1 month ago
JSON representation

A simple Hello, world app written with Rust, to be compiled and executed using the Rust official Docker image.

Awesome Lists containing this project

README

          

# rust-docker-hello-world

A simple "hello-world" application built and run with rust through Docker.

## Disclaimer

This is just a simple hello-world app.

## Prerequisites

I am starting to explore Rust. I wanted to create a version of the ubiquitous hello-world which would build and run under Docker.
You need to have Docker up and running on a Linux/Windows machine. This might be useful if you simply cannot install Rust on your machine, but you are allowed to use Docker.

All of this has been tested on:

- Windows 10 with Docker Desktop
- Manjaro Linux (amd64)

As I test the unit and/or the scripts on more platforms, I will update this list.

## Usage on Windows

Compile the application by running

`build`

Then you can run the application by running

`run`

## Usage on Linux

Compile the application by running

`sh build.sh`

Then you can run the application by running

`sh run.sh`

## Conclusion

That's basically all.
I hope this helps you to get started with Rust using Docker.