Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions docs/solana/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,36 @@ Begin by following the steps in the {ref}`Certora Prover installation guide <ins

`curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`

It is useful to have Rust versions 1.75, 1.79, and 1.81 or above installed.
Rust 1.85 or above is recommended to be able to build `cargo-certora-sbf` and when using `cvlr-solana` ≥ 0.5. Version 1.75 can be used when analyzing programs that use `cvlr-solana` versions (below or equal to 0.4) and programs that are bundled with Solana v1.18 (Rust version 1.79 matches the one bundled with Solana v2.1). Install whichever versions correspond to the Solana releases you target:
Comment thread
johspaeth marked this conversation as resolved.
Outdated


```
rustup toolchain install 1.79
rustup toolchain install 1.75
rustup toolchain install 1.81
rustup toolchain install 1.85 # (recommended) if the program under analysis uses Solana v2.3
rustup toolchain install 1.79 # (alternatively) if the program under analysis uses Solana v2.1
rustup toolchain install 1.75 # (alternatively) if the program under analysis uses Solana v1.18
```

2. Install `certora-sbf` cargo sub-command

`cargo +1.81 install cargo-certora-sbf`
2. Install [`certora-sbf`](https://github.com/Certora/cargo-certora-sbf) cargo sub-command

Note that a minimal version of Rust required to install `certora-sbf` is
v1.81.
```
cargo install cargo-certora-sbf
```

3. Test the installation by using `certora-sbf` to download and install Certora
4. Test the installation by using `certora-sbf` to download and install Certora
Platform Tools

`cargo certora-sbf --no-build`
```
cargo certora-sbf --no-build
```

6. Install [llvm](https://releases.llvm.org/), you can typically install it also via apt or brew.

7. Install [rustfilt](https://github.com/luser/rustfilt)
```
cargo install rustfilt
```

4. It is strongly recommended to install VSCode and the rust-analyzer extension.
8. It is strongly recommended to install VSCode and the rust-analyzer extension.

----

Expand Down
Loading