/hello-rust

Hello World in the Rust language

Primary LanguageDockerfileMIT LicenseMIT

hello-rust

Hello World in the Rust language

To build and run:

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