Hello World in the Rust language
- Set up Docker
- Set up Rust using the following:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustc --version
cd
to the hello-rust root directory, then run:
cargo build
cargo install --path .
- Run it:
hello-rust
- The Docker way:
docker build . --tag hello-rust
docker run -it --rm --name hello-rust hello-rust