22 releases

0.11.4 Aug 7, 2025
0.11.3 Apr 28, 2025
0.11.1 Mar 2, 2025
0.11.0 Sep 3, 2024
0.3.0 Jul 31, 2021

#103 in HTTP client

Download history 1437/week @ 2025-09-20 1495/week @ 2025-09-27 1477/week @ 2025-10-04 1381/week @ 2025-10-11 2462/week @ 2025-10-18 1478/week @ 2025-10-25 1177/week @ 2025-11-01 1131/week @ 2025-11-08 1145/week @ 2025-11-15 754/week @ 2025-11-22 1147/week @ 2025-11-29 908/week @ 2025-12-06 1022/week @ 2025-12-13 1712/week @ 2025-12-20 459/week @ 2025-12-27 1271/week @ 2026-01-03

4,630 downloads per month
Used in 2 crates (via atuin-server)

MIT/Apache

97KB
2K SLoC

Postmark

ci crates.io Documentation License

A rust library to query Postmark API.

Usage

Add the crate dependency to your Cargo.toml:

[dependencies]
postmark = "x.y.z"

And use it, see documentation at: https://docs.rs/postmark.

use postmark::api::email::SendEmailRequest;
use postmark::api::Body;
use postmark::reqwest::PostmarkClient;
use postmark::Query;

async fn send_email(){
  let client = PostmarkClient::builder()
   .server_token("<sometoken>")
   .build();

  let req = SendEmailRequest::builder()
    .from("me@example.com")
    .to("you@example.com")
    .body(Body::text("it's me, Mario!".to_string()))
    .build();
  let resp = req.execute(&client).await;
}

Releasing a new version

Prerequisite:

cargo install cargo-release

On Release:

cargo release --dry-run
# check it does the good thing
cargo release

Thanks

This crate's API design is heavily inspired by the article "Designing Rust bindings for REST APIs by Ben Boeckel.

License

postmark-rs is dual-licensed under either:

Dependencies

~4–19MB
~194K SLoC