#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 15/week @ 2024-01-05 1/week @ 2024-01-12 5/week @ 2024-01-19 5/week @ 2024-02-16 30/week @ 2024-02-23 31/week @ 2024-03-01 120/week @ 2024-03-08 21/week @ 2024-03-15 17/week @ 2024-03-22 17/week @ 2024-03-29

61 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
~613K SLoC