Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Rust for Blockchain Application Development

You're reading from  Rust for Blockchain Application Development

Product type Book
Published in Apr 2024
Publisher Packt
ISBN-13 9781837634644
Pages 392 pages
Edition 1st Edition
Languages
Author (1):
Akhil Sharma Akhil Sharma
Profile icon Akhil Sharma

Table of Contents (19) Chapters

Preface 1. Part 1:Blockchains and Rust
2. Chapter 1: Blockchains with Rust 3. Chapter 2: Rust – Necessary Concepts for Building Blockchains 4. Part 2: Building the Blockchain
5. Chapter 3: Building a Custom Blockchain 6. Chapter 4: Adding More Features to Our Custom Blockchain 7. Chapter 5: Finishing Up Our Custom Blockchain 8. Part 3: Building Apps
9. Chapter 6: Using Foundry to Build on Ethereum 10. Chapter 7: Exploring Solana by Building a dApp 11. Chapter 8: Exploring NEAR by Building a dApp 12. Part 4: Polkadot and Substrate
13. Chapter 9: Exploring Polkadot, Kusama, and Substrate 14. Chapter 10: Hands-On with Substrate 15. Part 5: The Future of Blockchains
16. Chapter 11: Future of Rust for Blockchains 17. Index 18. Other Books You May Enjoy

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:

  1. 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.
  2. Compile the project: The next step is to compile the project, which you can do as follows:
    1. Open a terminal and navigate to the Rust-Advanced-Blockchain directory within the project.
    2. Compile the project using Cargo. This will download dependencies and compile the project:
      cargo build –release
    3. The --release flag builds the project in release mode, which optimizes the binary for performance.

After running the preceding command, you will see the following result in the terminal:

blockchain_rust 0.1.0
USAGE:
  &...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}