Build Iroha 2 Client
After you have installed Iroha from GitHub, follow these instructions to build the Iroha 2 client:
Install the Rust Toolchain
You need a working Rust toolchain: cargo
, rustc
v1.60 and up. [1]
Installing the Rust Toolchain is normally a straightforward process, but we've added troubleshooting details for each stage, in case you experience issues with the installation process.
The easiest way to get the official rustup
script is to run:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Or, alternatively, you can install rustup
via your operating system’s package manager.
TIP
If you know what you're doing, you can also install the Rust toolchain directly, without rustup
.
If you chose to use the one-line curl
script, you will be guided through the setup process. Just go with the defaults.
Build Iroha Client
Navigate to the directory containing the Iroha repository. If you followed the installation instructions here, run:
bash$ cd ~/Git/iroha
Build the Iroha 2 client using:
bash$ cargo build -p iroha_client_cli --release
Build artifacts are created in the
./target/debug/
directory.INFO
We take pride in the fact that Iroha is extremely quick to compile. For reference, compiling hyperledger/substrate takes a good part of ten minutes on a modern M1 machine. Iroha, in comparison, compiles in around one minute.
If you're having issues installing Rust compatible with our code (2021 edition), please consult the troubleshooting section. ↩︎