Dev Environment
Prepare your development environment
The first step to start developing Micro-Rollups with Stackr is to prepare your development environment and making sure that all the system requirements are upto date and matches the required versions.
Install BunJS
Make sure you have the latest version of Bun installed that supports decorators >= 1.0.15
More information regarding Bun can be found at https://bun.sh
Install Rust
We recommend using Linux or macOS for development. If you are using Windows, you can install WSL2 and use Linux.
For Linux and macOS:
Install Stackr-CLI
CLI helps you to create new projects, compile and deploy your micro-rollups.
For Mac ARM based chips:
For Linux :
And for all other systems
Rust installation comes with cargo
package manager. We can also use cargo to install stackr-cli
.
Install Javy
Directly install the binary for Mac with
For Linux,
This command asks for root permissions to move the binary to /usr/local/bin
. Open a new terminal tab or source your shell to make sure the command runs.
For other archs/platforms, please refer to the Releases page and curl
the appropriate URL.
This is the recommended approach. However, if it does not work, please build Javy from source.
- On Ubuntu,
sudo apt-get install curl pkg-config libssl-dev clang
wasm32-wasi
, can be installed viarustup target add wasm32-wasi
cmake
, depending on your operating system and architecture, it might not be installed by default. On MacOS it can be installed with homebrew viabrew install cmake
. - On Ubuntu,sudo apt-get install cmake
.- Rosetta 2 if running MacOS on Apple Silicon, can be installed via
softwareupdate --install-rosetta
Then clone the repo and install javy
cli globally:
Install git
You probably already have g(it).