> For the complete documentation index, see [llms.txt](https://docs.vera.financial/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vera.financial/developers/main/getting-started/building-smart-contracts.md).

# Building Smart Contracts

## Install cargo-contract

To build the Substrate smart contract project we will need CLI utility

```bash
$ rustup component add rust-src --toolchain nightly
```

```bash
$ cargo install cargo-contract --vers ^0.11 --force --locked
```

## 🧪 Test

To test your smart contract, run the following command

```bash
$ cargo test
```

## 🏗️ Build

To compile your smart contract, run the following command

```bash
$ cargo +nightly contract build
```
