🗜
Compile witnet-rust from Source Code
witnet-rust
is being developed using the Rust programming language. You need to install Rust on your system to be able to compile the source code. Follow installation instructions for your operating system provided on rustup.rsGNU/Linux (apt)
Mac OS
apt install -y clang git libssl-dev protobuf-compiler librocksdb-dev pkg-config
xcode-select --install
brew install git openssl protobuf rocksdb
HTTPS
SSH
GitHub CLI
git clone https://github.com/witnet/witnet-rust.git
cd witnet-rust
git clone [email protected]:witnet/witnet-rust.git
cd witnet-rust
gh repo clone witnet/witnet-rust
cd witnet-rust
cURL
wget
curl https://raw.githubusercontent.com/witnet/genesis_block/master/latest/genesis_block.json -o genesis_block.json
wget https://raw.githubusercontent.com/witnet/genesis_block/master/latest/genesis_block.json
By default, this line will run a Witnet node and connect to the Testnet using the default configuration:
cargo run node server
This one-liner will build a releasable standalone binary compatible with the architecture of your computer's processor:
cargo build --release
The resulting binary will be located at
./target/release/witnet
.Last modified 1yr ago