13 releases (8 breaking)

0.9.2 Nov 29, 2024
0.8.1 Jul 11, 2024
0.3.0 Feb 6, 2024
0.2.0 Jul 10, 2023

#45 in Email

Download history 114/week @ 2024-08-17 192/week @ 2024-08-24 263/week @ 2024-08-31 228/week @ 2024-09-07 318/week @ 2024-09-14 348/week @ 2024-09-21 350/week @ 2024-09-28 179/week @ 2024-10-05 264/week @ 2024-10-12 190/week @ 2024-10-19 143/week @ 2024-10-26 186/week @ 2024-11-02 175/week @ 2024-11-09 152/week @ 2024-11-16 164/week @ 2024-11-23 252/week @ 2024-11-30

757 downloads per month
Used in 2 crates

MIT license

110KB
2K SLoC

resend-rs

Build Status Crate Docs Crate Version

A minimal Resend client.

Add with:

cargo add resend-rs
cargo add tokio -F macros,rt-multi-thread

Emails are sent via the Resend client which provides both a synchronous and asynchronous send method. The two are mutually exclusive and accessible via the blocking feature. The crate uses reqwest and serde internally.

Documentation

Crate documentation is available in docsrs. Example usage is available in the get started guide on the Resend website, you can also find examples in the API reference.

Features

  • blocking to enable the blocking client.
  • native-tls to use system-native TLS. Enabled by default.
  • rustls-tls to use TLS backed by rustls.

Variables

  • RESEND_API_KEY to enable impl Default for a Resend client (Required).
  • RESEND_BASE_URL to override the default base address: https://api.resend.com (Optional).
  • RESEND_RATE_LIMIT to set the maximum amount of requests you can send per second. By default, this is 9 (Resend defaults to 10). See the docs for more information.
WARNING: Rate limiting only works when using the async version (default) of the crate

Dependencies

~8–19MB
~259K SLoC