hookburn-slack 0.2.2

A Rust crate for sending messages to Slack via webhooks
Documentation

hookburn-discord

An async Rust crate for sending rich messages to Discord via webhooks.

Crates.io Docs.rs License: MIT


Features

  • Typed message builder — construct WebhookMessage and Embed payloads with a fluent builder API; validation happens at .build() time, not at runtime.
  • discord_message! / embed! macros — shorthand for common one-liner messages.
  • Rate-limit awareness — Discord's HTTP 429 surfaces as WebhookError::RateLimited with a retry_after_ms field so you can back off correctly.
  • Thread support — post into existing threads or create new ones in forum channels.
  • AllowedMentions control — always safe to pass user-generated content; silence @everyone pings with a single call.
  • JSON code blocks — format any Serialize value as a Discord code block in message content or embed descriptions/fields.
  • Pluggable TLS — rustls by default (pure Rust, no OpenSSL); opt into native-tls via a feature flag.
  • WebhookSender trait — write code that is generic over notification backends (Discord, Slack, etc.) via hooksmith-core.