From d83f9da9d2922a3069f001ad87d741d03274cbba Mon Sep 17 00:00:00 2001 From: Johannes Schickling Date: Thu, 6 Nov 2014 16:46:58 +0100 Subject: [PATCH] compile --- rust/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rust/README.md b/rust/README.md index f77d0b5..f16d62c 100644 --- a/rust/README.md +++ b/rust/README.md @@ -10,9 +10,15 @@ $ docker run --rm -it -v $(pwd):/source schickling/rust Mount your local source folder to the container and compile & run code inside. -### Environment variables +#### Compiling code -#### `USER` +```sh +$ rustc hello-world.rs +$ ./hello-world +> Hello World! +``` + +#### Environment variables The `$USER` environment variable can be specified, which is used by `cargo`. The default is `root`.