#vertex #protocols #sanity #sdk

bin+lib vertex-sdk

Official Rust SDK for the Vertex Protocol API

4 releases

0.1.3 Mar 12, 2024
0.1.2 Jan 23, 2024
0.1.1 Jan 10, 2024
0.1.0 Jan 9, 2024

#5 in #sanity

Download history 16/week @ 2024-01-08 5/week @ 2024-01-22 13/week @ 2024-02-19 42/week @ 2024-02-26 16/week @ 2024-03-04 130/week @ 2024-03-11 15/week @ 2024-03-18 8/week @ 2024-03-25 17/week @ 2024-04-01

171 downloads per month

MIT/Apache

1MB
26K SLoC

Vertex Protocol Rust SDK

Crates.io

This is the Rust SDK for the Vertex Protocol API.

Documentation

Installation

Add the following line to your Cargo.toml file:

[dependencies]
vertex_sdk = "0.1.3"

Usage

See the examples and sanity directories.

Running locally

Run sanity checks

  • cargo run -- --execute-sanity: runs sanity checks for executes.
  • cargo run -- --query-sanity: runs sanity checks for engine queries.
  • cargo run -- --indexer-sanity: runs sanity checks for indexer queries.

lib.rs:

vertex_sdk

Usage

See the examples and sanity directories.

Quickstart: prelude

A prelude is provided which imports all the important data types and traits for you. Use this when you want to quickly bootstrap a new project.

use vertex_sdk::prelude::*;

Modules

core

Core traits that define API interaction. These traits must be imported when using the client. The simplest way to import the traits is by using the prelude.

vertex-utils

Contains request and response models.

builders

Use builders for improved UX when writing complex queries or executes. You can build each query or execute struct for later use or send it directly from the builder.

vertex_client

REST implementation of core traits.

sanity

Sanity checks for core SDK functionality.

Dependencies

~23–39MB
~609K SLoC