agentmail-rs 0.3.0

Unofficial typed Rust client for AgentMail (agentmail.to), the email API for agents.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.86"
name = "agentmail-rs"
version = "0.3.0"
authors = ["Jacob Heider <jhheider@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial typed Rust client for AgentMail (agentmail.to), the email API for agents."
homepage = "https://github.com/jhheider/agentmail-rs"
documentation = "https://docs.rs/agentmail-rs"
readme = "README.md"
keywords = [
    "email",
    "agentmail",
    "api",
    "async",
    "agents",
]
categories = [
    "api-bindings",
    "email",
    "asynchronous",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jhheider/agentmail-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["retries"]
retries = ["dep:tokio"]
webhook-verify = [
    "dep:ring",
    "dep:base64",
]

[lib]
name = "agentmail"
path = "src/lib.rs"

[[example]]
name = "smoke"
path = "examples/smoke.rs"

[[example]]
name = "webhook"
path = "examples/webhook.rs"
required-features = ["webhook-verify"]

[[test]]
name = "http"
path = "tests/http/main.rs"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls-no-provider",
    "json",
    "query",
]
default-features = false

[dependencies.ring]
version = "0.17"
optional = true

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["time"]
optional = true
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[dev-dependencies.wiremock]
version = "0.6"