slack-bk ![Build Status] ![Docs] ![Latest Version]

Rust crate for Slack's BlockKit API

You'll probably want to reference Slack's documentation while using this crate.

Using slack-bk with an HTTP client

slack-bk does not come with a built in mechanism to talk to slack's API. There are many popular HTTP libraries in the rust ecosystem and the user is free to choose their own.

```rust use reqwest::{Client, Error}; use slack_bk::surfaces::Message;

async fn sendtowebhook(webhook: &str, client: &Client, msg: Message) -> Result<(), Error> { client .post(webhook) .json(&msg) .send() .await? .errorforstatus()? .map(|_| ())

} ```