Introduction
raen is a CLI tool for building NEAR smart contracts. Currently it only supports Rust.
raen uses wit generated from the Rust source code using witgen.
Installation
Rust
raen is a Rust crate and can be installed via cargo:
cargo install raen
npm (optionally)
raen is also distributed on npm which wraps the rust binary built for your computer:
npm install --global raen-cli
Additional requirements
raen is designed as an extension for near-cli-rs, but until this project is stable you need to install the JS version near-cli to deploy your contracts.
npm install --global near-cli
Basic usage
Build Rust
In a NEAR smart contract project:
raen build --release
This builds the contract (or contracts if workspace), embeds the contract's types in a custom section,
and places them in ./target/res/crate_name.wasm.