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