Reader small image

You're reading from  Rust for Blockchain Application Development

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781837634644
Edition1st Edition
Concepts
Right arrow
Author (1)
Akhil Sharma
Akhil Sharma
author image
Akhil Sharma

Akhil Sharma is a Software Engineer and an entrepreneur. He is the CTO of Dominate, a SaaS product company, and the founder of Myrl Tech, a tech services company providing technology consulting to some of the top enterprise companies in the world such as HP, 3M, Honda, Bose, and Adobe. He has 12+ years of industry experience and a solid understanding of building digital products. He is adept at multiple programming languages such as Golang, Rust, Ruby, Python, and JavaScript. He has mentored hundreds of engineers offline and discovered that they knew the programming language and the concepts around it but were unable to use them in real-world applications. He aims to close this gap by teaching how to apply the concepts practically and build projects in real time.
Read more about Akhil Sharma

Right arrow

Technical requirements

Here’s what you will need to get started with the NEAR blockchain.

Prerequisites

To develop a smart contract, you will need to install Node.js. If you want to use Rust as your main language, then you’ll need to install rustup as well.

You’ll also need the following:

  • Node.js: Download and install Node.js (https://nodejs.org/en/download/)
  • Rust and Wasm:
    1. Follow these instructions for setting up Rust: https://doc.rust-lang.org/book/ch01-01-installation.html.
    2. Then, add the wasm32-unknown-unknown toolchain, which enables compiling Rust to WebAssembly (Wasm) – https://webassembly.org/– the low-level language used by the NEAR platform:
      # Installing Rust in Linux and MacOS
      curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
      source $HOME/.cargo/env
      # Add the wasm toolchain
      rustup target add wasm32-unknown-unknown

Next, we must set up the environment with the required installations.

Installation...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Rust for Blockchain Application Development
Published in: Apr 2024Publisher: PacktISBN-13: 9781837634644

Author (1)

author image
Akhil Sharma

Akhil Sharma is a Software Engineer and an entrepreneur. He is the CTO of Dominate, a SaaS product company, and the founder of Myrl Tech, a tech services company providing technology consulting to some of the top enterprise companies in the world such as HP, 3M, Honda, Bose, and Adobe. He has 12+ years of industry experience and a solid understanding of building digital products. He is adept at multiple programming languages such as Golang, Rust, Ruby, Python, and JavaScript. He has mentored hundreds of engineers offline and discovered that they knew the programming language and the concepts around it but were unable to use them in real-world applications. He aims to close this gap by teaching how to apply the concepts practically and build projects in real time.
Read more about Akhil Sharma