airgap-it / tezos-rust-sdk

MIT License
20 stars 10 forks source link

Tezos Rust SDK

A set of Rust libraries to interact with the Tezos blockchain.

Use Cases

The Tezos Rust SDK ships with tools that can be used to:

General

Michelson/Micheline

Operations

RPC

Contract

Requirements

Rust 1.60.0 or above.

Install the rustc compiler and the cargo command line tool through rustup.

Build

cargo build --release

Test

cargo test

Rust Documentation

Use the following command from the root folder of one of the crates to generate and open the Rust documentation:

cargo doc --open

For example, run the above command inside tezos-core to generate the documentation for the tezos-core crate and open it in the browser.

Samples

See the sample projects in samples to see how the various crates can be used.

Packages

Tezos Rust SDK is a multi-crate project. It has been designed to allow its users to use only the required minimum of functionality that meets their needs, thus optimizing the amount of redundant and unwanted code and dependencies.

Package Description Dependencies
tezos-core Provides base Tezos types and actions that can be performed on them. ✖️
tezos-michelson Provides Michelson and Micheline types and actions, e.g. pack/unpack. tezos-core
tezos-operation Provides Tezos Operation structures as defined in the P2P message format and actions that can be performed on them, e.g. forge/unforge and sign/verify. tezos-core
tezos-michelson
tezos-rpc Provides a Tezos RPC client which should be used to interact with Tezos nodes. tezos-core
tezos-michelson
tezos-operation
tezos-contract Provides a Tezos contract handler which should be used to interact with Tezos contracts. tezos-core
tezos-michelson
tezos-operation
tezos-rpc