๐Ÿฆ€ Showcase: `whatsapp-business-rs` โ€“ A full-featured WhatsApp Business SDK in Rust

โš“ Rust    ๐Ÿ“… 2025-07-19    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 5      

surdeus

Hey Rustaceans! :waving_hand:

I've been building a lot around the WhatsApp Business Cloud API lately โ€” and got tired of the pain:

  • Sparse docs
  • Repetitive HTTP calls
  • SDKs in other languages that feel... clunky
  • No type safety, no async, no fun

So I did the Rust thing:

:backhand_index_pointing_right: whatsapp-business-rs
An async-native, type-safe, extensible SDK for the WhatsApp Business Platform โ€” built for real apps, bots, CRMs, and e-commerce workflows.

:white_check_mark: Key Features

  • :small_blue_diamond: Rich message support (text, media, buttons, reactions, etc.)
  • :small_blue_diamond: Ergonomic, fluent client API (.send().await?, .builder(), etc.)
  • :small_blue_diamond: Webhook server built-in (signature verification + async handlers)
  • :small_blue_diamond: Catalog management with streaming support
  • :small_blue_diamond: Multi-tenant friendly โ€” override auth per request
  • :small_blue_diamond: Everything typed: no "field": string_or_struct_or_maybe_nothing

Itโ€™s built on reqwest, tokio, and axum (internally), and tries to feel "right" in Rust.
Inspired by DX-first principles, builder patterns, and a whole lot of real-world use cases.


:package: Crate

โ†’ https://crates.io/crates/whatsapp-business-rs

:wrench: Example: Send a Message

client.message("BUSINESS_ID")
      .send("+2348012345678", "Hello from Rust!")
      .await?;

Or start a webhook server in minutes:

server.serve(handler, client).await?;

Or manage catalogs:

client.catalog("CATALOG_ID")
      .create_product(product_data)
      .await?;

Itโ€™s still early, but Iโ€™m actively improving coverage (templates, contacts, docs) and would love feedback, issues, PRs โ€” or just a โ€œhey, this helpedโ€ :folded_hands:

Thanks for reading, and big ups to the Rust community for making DX like this even possible.

โ€“ Victor

1 post - 1 participant

Read full topic

๐Ÿท๏ธ rust_feed