Registry / messaging / slack-hook

slack-hook

JSON →
library0.9.1rscratesunverified

A Rust crate for sending messages to Slack via webhooks.

# Cargo.toml [dependencies] slack-hook = "0.9.1"
INSTALL
IMPORT
SIG · SLACK-HOOK
S
slack-hook
messagingrustv0.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Slack
use slack_hook::Slack;

Sends a message to Slack via webhook using async runtime.

use slack_hook::Slack; #[tokio::main] async fn main() { let slack = Slack::new("https://hooks.slack.com/services/...").unwrap(); slack.send("Hello from Rust!").await.unwrap(); }
Debug
Known issues
gotchaRequires async runtime (e.g., tokio) for sending messages.
fix
Add tokio as a dependency and use #[tokio::main] or similar runtime.
affects: >=0.9.0
Upgrade
Version history
0.9.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
slack-hook — cargo add slack-hook · libregistry