Skip to content

Laguna-Chain/laguna-chain

Repository files navigation

Laguna Chain

WIP

Environment Setup

Install Rust and the Rust Toolchain

  1. Install rustup by running the following command:
curl https://sh.rustup.rs -sSf | sh
  1. Configure your current shell to reload your PATH environment variable so that it includes the Cargo bin directory by running the following command:
source ~/.cargo/env
  1. Configure the Rust toolchain to default to the latest stable version by running the following commands:
rustup default stable
rustup update
  1. Add the nightly release and the nightly WebAssembly (wasm) targets by running the following commands:
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
  1. Verify your installation by running the following commands:
rustc --version
rustup show

Clone Repo, Build, and Start the Chain

  1. Clone the laguna-chain repo by running the following command:
git clone https://github.com/Laguna-Chain/laguna-chain.git
  1. Change to the root of the laguna-chain directory by running the following command:
cd laguna-chain
  1. Compile the chain by running the following command:
cargo build --release

Building with the --release flag results in optimized artifacts.

  1. To start the chain, run the following command:
./target/release/laguna-node --dev