stephengtuggy / hello-rust

Hello World in the Rust language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Hello World in the Rust language

License:MIT License


Languages

Language:Dockerfile 58.6%Language:Rust 41.4%