Using your custom blockchain
Before running your blockchain, ensure your environment is set up correctly. This step involves installing Rust, which is necessary for compiling and managing the project, given its development in Rust language. Here’s what you need to do:
- Install Rust: Visit the official Rust website and follow the instructions to install Rust and Cargo on your system. Cargo is Rust’s package manager and build system.
- Compile the project: The next step is to compile the project, which you can do as follows:
- Open a terminal and navigate to the
Rust-Advanced-Blockchain
directory within the project. - Compile the project using Cargo. This will download dependencies and compile the project:
cargo build –release
- The
--release
flag builds the project in release mode, which optimizes the binary for performance.
- Open a terminal and navigate to the
After running the preceding command, you will see the following result in the terminal:
blockchain_rust 0.1.0 USAGE: &...