> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paubox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Paubox Rust SDK

> Send HIPAA-compliant email and submit Paubox Forms from Rust applications using the official Paubox Rust SDK.

The Paubox Rust SDK is the official async Rust client library for the [Paubox Email API](/email-api) and [Paubox Forms](/forms). All methods are `async` and return `Result<T, PauboxError>`, making them composable with any Tokio-based application.

```toml theme={null}
# Cargo.toml
[dependencies]
paubox = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
```

## What you can do

* Send encrypted, HIPAA-compliant email to one or more recipients
* Add CC, BCC, attachments, and HTML or plain-text content
* Track delivery status and open engagement per recipient
* Retrieve Paubox Form schemas and submit form responses with file attachments

## Requirements

* Rust 1.75 or later
* Tokio async runtime

## Feature flags

Both features are enabled by default. Disable the ones you don't need to reduce compile times:

```toml theme={null}
# Email API only
paubox = { version = "0.1", default-features = false, features = ["email"] }

# Forms API only
paubox = { version = "0.1", default-features = false, features = ["forms"] }
```

| Feature | What it includes                                                               |
| ------- | ------------------------------------------------------------------------------ |
| `email` | `PauboxClient`, `Message`, `Attachment`, `SendResponse`, `DispositionResponse` |
| `forms` | `FormsClient`, `Form`, `FormSubmission`, `FormAttachment`                      |

## Get started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/rust-sdk/quickstart">
    Configure credentials and send your first email in minutes.
  </Card>

  <Card title="Authentication" icon="key" href="/rust-sdk/authentication">
    Three ways to supply your API key and username.
  </Card>

  <Card title="Email client" icon="envelope" href="/rust-sdk/email-client">
    Full reference for building messages, sending email, and tracking delivery.
  </Card>

  <Card title="Forms client" icon="file-lines" href="/rust-sdk/forms-client">
    Retrieve form schemas and submit responses.
  </Card>
</CardGroup>
