Skip to main content
Not sure which product you need? Let the wizard guide you (opens in new tab)
Smarty

Smarty Rust SDK

If you want to access our APIs (other than the Download API) from a Rust application, the Smarty Rust SDK can make it a lot easier. Our Rust SDK includes ready-made data structures and takes care of all the gritty, low-level HTTP intricacies for you.

Contents

  1. Requirements
  2. How to get it
    1. Cargo
    2. Download the source code
  3. How to use it
    1. Examples
  4. API reference material

Requirements

  1. Have a Rust project that is written using Rust 1.63.0 or later.
  2. Realize that you need an address verification component.
  3. Wisely conclude that you don't want to build your own address verification component.
  4. Realize that Smarty has already created an address verification component.
  5. Congratulations! You are now ready to use the Smarty Rust SDK.

How to get it

Cargo

The easiest way to get your giddy hands on this goodness is by using Cargo (opens in new tab).

Be sure Cargo is installed, then just pop open your terminal and run

$ cargo add tokio
$ cargo add env-logger
$ cargo add serde-json
$ cargo add smarty-rust-sdk

Download the source code

You can find source code of the Smarty Rust SDK repository on GitHub (opens in new tab) which contains many sample code snippets (opens in new tab).

Use the source, Luke! (opens in new tab)

How to use it

Examples

Here are a few examples showing how to use the Rust SDK:

Ready to get started?

Share feedback
What kind?

Use this form to share ideas or feedback for improving our website and products. For help using or implementing a Smarty product, contact support.

This chat is powered by Help Scout. Chats are recorded. Privacy Policy