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.
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
We recommend using Linux or macOS for development. If you are using Windows, you can install WSL2 and use Linux.
For Linux and macOS:
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
.
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.
sudo apt-get install curl pkg-config libssl-dev clang
wasm32-wasi
, can be installed via rustup 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 via brew install cmake
. - On Ubuntu, sudo apt-get install cmake
.softwareupdate --install-rosetta
Then clone the repo and install javy
cli globally:
You probably already have g(it).