Crates.io | slack-morphism |
lib.rs | slack-morphism |
version | |
source | src |
created_at | 2020-08-09 13:23:35.334266 |
updated_at | 2025-01-01 13:52:27.350493 |
description | Slack Morphism is a modern client library for Slack Web/Events API/Socket Mode and Block Kit |
homepage | https://github.com/abdolence/slack-morphism-rust |
repository | https://github.com/abdolence/slack-morphism-rust |
max_upload_size | |
id | 274624 |
Cargo.toml error: | TOML parse error at line 25, column 1 | 25 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Slack Morphism is a modern client library for Slack Web/Events API/Socket Mode and Block Kit.
Please follow to the official website: https://slack-rust.abdolence.dev.
https://github.com/abdolence/slack-morphism-rust/tree/master/examples
The examples require to work the following environment variables (from your Slack bot profile in api.slack.com):
SLACK_TEST_TOKEN
- for Slack client exampleSLACK_TEST_APP_TOKEN
- for Slack client with Socket Mode exampleSLACK_CLIENT_ID
, SLACK_CLIENT_SECRET
, SLACK_BOT_SCOPE
, SLACK_REDIRECT_HOST
- for OAuth routes for Events API exampleSLACK_SIGNING_SECRET
for all routes for Events API exampleTo run example use with environment variables:
# SLACK_... cargo run --example <client|events_api_server|axum_events_api_server|socket_mode> --all-features
Routes for this example are available on http://
For development/testing purposes you can use ngrok:
ngrok http 8080
and copy the URL it gives for you to the example parameters for SLACK_REDIRECT_HOST
.
Example testing with ngrok:
SLACK_CLIENT_ID=<your-client-id> \
SLACK_CLIENT_SECRET=<your-client-secret> \
SLACK_BOT_SCOPE=app_mentions:read,incoming-webhook \
SLACK_REDIRECT_HOST=https://<your-ngrok-url>.ngrok.io \
SLACK_SIGNING_SECRET=<your-signing-secret> \
cargo run --example events_api_server --all-features
Apache Software License (ASL)
Abdulla Abdurakhmanov