This repository provides a VS Code dev containers configuration with a complimentary Docker image that allows you to quickly try out Scrypto on your machine, without going through all its installation steps.
For an introduction about working inside of dev containers in VS Code, see the documentation.
This repository includes the basic "hello" example that is generated when a new package is created with scrypto new-package
. Once you open the project inside the container, you will have the entire Scrypto toolchain available in that isolated environment.
You will need to have Docker installed, in addition to the Dev containers extension in VS Code. For instructions on their installation, find their respective documentation pages.
- Clone this repository:
git clone git@github.com:Krulknul/try-scrypto.git
- Open the directory with VS Code:
code try-scrypto
-
VS Code might suggest you to open the repository in a dev container, because of the existing
.devcontainer
config. If it does, click "Reopen in container". Else, open the command palette and type "Reopen in container". Docker might pull the image if it's not yet present and then start the container. -
Wait for rust-analyzer to finish checking and indexing. It might take a bit of time before IntelliSense comes alive.
-
Try out Scrypto!
Use scrypto build
to build the project, or try out scrypto --help
for more subcommands. Additional CLI tools are also present inside the container, like resim
, the Radix Engine simulator, or rtmc
and rtmd
, the Radix transaction manifest compiler and decompiler respectively.
To get out of the container, open the command palette again and type "Reopen Folder Locally", to find the command for that. The code is mounted inside the container, so any changes will be persistent.
The dev container is set up to use a Dockerfile, so it is possible to add more development tools to the environment as you wish.