• Stars
    star
    99
  • Rank 343,315 (Top 7 %)
  • Language
    Rust
  • License
    MIT License
  • Created about 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unofficial Rust library for the SendGrid API

sendgrid-rs

Unofficial Rust library for the SendGrid API.

This crate requires Rust 1.15 or higher as it uses a crate that has a custom derive implementation.

sendgrid-rs implements all of the functionality of other supported SendGrid client libraries. To use sendgrid-rs you must first create a SendGrid account and generate an API key. To create an API key for your SendGrid account, use the account management interface or see the SendGrid API Documentation.

sendgrid-rs is available on crates.io and can be included in your Cargo.toml as follows:

[dependencies]
sendgrid = "X.X.X"

Build Dependencies

This library utilises reqwest. Follow the instructions on the reqwest README in order to enable sending HTTPS requests to the SendGrid API.

Features

You can take advantage of a couple features for the crate. To enable the blocking send function, you can use the blocking flag. To enable the rustls TLS feature, use the rustls flag.

Example

An example of using this library can be found in the examples directory. This example code expects to find your SendGrid API key in the process environment. In shells such as Bash or ZSH this can be set as follows:

export SENDGRID_API_KEY="SG.my.api.key"
SENDGRID_API_KEY=SG.... cargo run --example v3_disable_tracking --features="blocking" [email protected] [email protected]

Documentation

Documentation

Please don't hesitate to contact me at the email listed in my profile. I will try to help as quickly as I can. If you would like to contribute, contact me as well.

Mentions

Thanks to meehow for their contributions.

Thanks to richo for their improvements to the V2 API.

License

MIT

More Repositories

1

topngx

top for NGINX
Rust
691
star
2

zig-play

An online Zig compiler inspired by Go and Rust
Go
80
star
3

reroute

A router for Rust's hyper framework using regular expressions
Rust
44
star
4

zig-snappy

Snappy compression for Zig
Zig
26
star
5

yaus

Deprecated URL shortener
Rust
25
star
6

dll

Go linter for finding defer statements inside for loops
Go
25
star
7

redis-multi-map

A Redis module implementing a MultiMap type
C
15
star
8

sortpar

Sort in parallel
Rust
12
star
9

concur

Asynchronously repeat commands
Rust
10
star
10

singleflight

Rust port of Go's singleflight package
Rust
8
star
11

compress

Compression modifier for the Iron framework
Rust
7
star
12

rust_bin

A sample Rust service to test out Google Cloud Run
Rust
7
star
13

tide

A simple file server.
C
6
star
14

nsq-rs

Unofficial asynchronous client for NSQ
Rust
6
star
15

fencelock

An alternative distributed lock for Redis
C
5
star
16

string-builder

A simple string builder crate for Rust
Rust
5
star
17

oc-rust

OC Rust Group Projects
C
3
star
18

nsx

Google DNS over HTTPS
Rust
3
star
19

toml-sorted

A simple tool to check if a manifest is sorted
Rust
2
star
20

toolchain_find

Find components installed under a different toolchain
Rust
2
star
21

hn_check

A simple Ruby script to check if a URL has been submitted to HN.
Ruby
2
star
22

cat-zig

A simple cat clone using Zig
Zig
2
star
23

fuzzig

Rust
2
star
24

bypass

Go Middleware
Go
2
star
25

farmhash-ffi

Simple Rust bindings to Google's FarmHash
C++
1
star
26

gsquire.github.io

Sometimes a blog
HTML
1
star
27

sequoia

A logging library for Rust
Rust
1
star
28

aoc_2023

Advent of Code 2023
Go
1
star
29

swell

My senior project at Cal Poly.
Rust
1
star
30

limiter

Request size limiting for the Iron framework
Rust
1
star