if you are a first-time user of Rust, the notes below may help you to install some of the dependencies on a Mac or Linux workstation.
We suggest that you install Rust using the 'rustup' tool. Rustup will install the latest version of Rust, Cargo, and the other binaries used in Solana.
Follow the instructions at Installing Rust.
For Mac users, Homebrew is also an option. The Mac Homebrew command is brew install rustup
and then rustup-init
. See Mac
Setup & Installing
Rust for more details.
After installation, you should have rustc
, cargo
, & rustup
. You should
also have ~/.cargo/bin
in your PATH environment variable.
Fetch the npm
dependencies, including @solana/web3.js
, by running:
$ npm install
Clone the 'example-helloworld' repository into your development machine:
$ cd /path/to/your/work/folder/
$ git clone https://github.com/solana-labs/example-helloworld.git
$ cd example-helloworld
(If you plan to submit changes in a pull request, be sure to create a fork first and then clone your fork.)