From 5bbc3096ecd9258a413914a76a55985e1ea6e7ca Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Thu, 18 Apr 2019 20:05:16 -0700 Subject: [PATCH] Fix rust container --- containers/rust/Cargo.lock | 4 ---- containers/rust/README.md | 11 ++++++++--- containers/rust/test-project/Cargo.lock | 6 ++++++ containers/rust/{ => test-project}/Cargo.toml | 0 containers/rust/{ => test-project}/src/main.rs | 0 5 files changed, 14 insertions(+), 7 deletions(-) delete mode 100644 containers/rust/Cargo.lock create mode 100644 containers/rust/test-project/Cargo.lock rename containers/rust/{ => test-project}/Cargo.toml (100%) rename containers/rust/{ => test-project}/src/main.rs (100%) diff --git a/containers/rust/Cargo.lock b/containers/rust/Cargo.lock deleted file mode 100644 index bc68f0f3da..0000000000 --- a/containers/rust/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "hello_world" -version = "0.1.0" - diff --git a/containers/rust/README.md b/containers/rust/README.md index ae442d9cf1..7491827d22 100644 --- a/containers/rust/README.md +++ b/containers/rust/README.md @@ -12,11 +12,16 @@ ## Usage -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +[See here for information on adding it to your project.](../../README.md#using-a-definition). There is no extra steps to using this dev container. -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. +### Try it! -If you want to try out the test project instead, run **Remote-Container: Open Folder in Container...** in VS Code and select a cloned copy of the entire folder. You can then start the test program from Debug panel in VS Code. +Just follow these steps to try out the test project: + +1. Clone the vscode-dev-containers repository +2. Start VS Code and run **Remote-Container: Open Folder in Container...** and select this folder +3. Hit F5 or click on the Debug panel and start select "Debug executable 'hello world'" +4. The project will run and output "Hello, VS Code Remote!" ## License diff --git a/containers/rust/test-project/Cargo.lock b/containers/rust/test-project/Cargo.lock new file mode 100644 index 0000000000..6086891478 --- /dev/null +++ b/containers/rust/test-project/Cargo.lock @@ -0,0 +1,6 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "hello_world" +version = "0.1.0" + diff --git a/containers/rust/Cargo.toml b/containers/rust/test-project/Cargo.toml similarity index 100% rename from containers/rust/Cargo.toml rename to containers/rust/test-project/Cargo.toml diff --git a/containers/rust/src/main.rs b/containers/rust/test-project/src/main.rs similarity index 100% rename from containers/rust/src/main.rs rename to containers/rust/test-project/src/main.rs