{"id":13828811,"url":"https://github.com/frostly/rust-slack","last_synced_at":"2025-12-12T15:35:41.789Z","repository":{"id":19460289,"uuid":"22704842","full_name":"frostly/rust-slack","owner":"frostly","description":"A rust crate for sending messages to Slack via webhooks","archived":false,"fork":false,"pushed_at":"2025-02-13T00:48:23.000Z","size":3854,"stargazers_count":167,"open_issues_count":0,"forks_count":49,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-04T14:00:28.450Z","etag":null,"topics":["rust","slack","webhook"],"latest_commit_sha":null,"homepage":"https://docs.rs/slack-hook/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frostly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-08-07T02:02:50.000Z","updated_at":"2025-02-13T00:42:43.000Z","dependencies_parsed_at":"2025-02-12T22:27:31.991Z","dependency_job_id":"b0a5e59f-ff7a-4a42-828d-202db18b4cd6","html_url":"https://github.com/frostly/rust-slack","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/frostly/rust-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostly%2Frust-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostly%2Frust-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostly%2Frust-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostly%2Frust-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostly","download_url":"https://codeload.github.com/frostly/rust-slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostly%2Frust-slack/sbom","scorecard":{"id":412248,"data":{"date":"2025-08-11","repo":{"name":"github.com/frostly/rust-slack","commit":"45e864fcd1da9fb41412291ba5daa74ce5bd8272"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/basic.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/basic.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/frostly/rust-slack/basic.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/basic.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/frostly/rust-slack/basic.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2025-0004 / GHSA-rpmj-rpgj-qmpm","Warn: Project is vulnerable to: GHSA-4fcv-w3qc-ppgg","Warn: Project is vulnerable to: RUSTSEC-2025-0022","Warn: Project is vulnerable to: GHSA-4p46-pwfr-66x6","Warn: Project is vulnerable to: RUSTSEC-2025-0009","Warn: Project is vulnerable to: GHSA-c86p-w88r-qvqr","Warn: Project is vulnerable to: GHSA-rr8g-9fpq-6wmg","Warn: Project is vulnerable to: RUSTSEC-2025-0023"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T23:00:26.920Z","repository_id":19460289,"created_at":"2025-08-18T23:00:26.920Z","updated_at":"2025-08-18T23:00:26.920Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27685562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","slack","webhook"],"created_at":"2024-08-04T09:03:11.291Z","updated_at":"2025-12-12T15:35:41.771Z","avatar_url":"https://github.com/frostly.png","language":"Rust","readme":"# slack-hook\n\n[![CI](https://github.com/frostly/rust-slack/actions/workflows/basic.yml/badge.svg)](https://github.com/frostly/rust-slack/actions/workflows/basic.yml)\n[![Documentation](https://img.shields.io/badge/docs-latest-C9893D.svg)](https://docs.rs/slack-hook/)\n[![crates.io](https://img.shields.io/crates/v/slack-hook.svg)](https://crates.io/crates/slack-hook)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE-MIT)\n[![Apache licensed](https://img.shields.io/badge/license-Apache-blue.svg)](./LICENSE-APACHE)\n\nA rust crate for sending messages to Slack via webhooks.\n\n[Slack](https://slack.com/) is a messaging platform for team collaboration.\n\nUpgrading? See the [CHANGELOG](./CHANGELOG.md).\n\n# Features\n\n- **blocking**: Provides a synchronous \"blocking\" slack client\n- **default-tls** _(enabled by default)_: Provides TLS support to connect over HTTPS\n- **native-tls**: Enables TLS functionality provided by [`native-tls`](https://crates.io/crates/native-tls)\n- **rustls-tls**: Enables TLS functionality provided by [`rustls`](https://crates.io/crates/rustls)\n\n# Usage\n\nSimply run this to add it to your `Cargo.toml`:\n\n```console\ncargo add slack-hook --features=blocking\n```\n\nand then start sending messages!\n\n```rust,no_run\nuse slack_hook::{blocking::Slack, PayloadBuilder};\n\nlet slack = Slack::new(\"https://hooks.slack.com/services/abc/123/45z\").unwrap();\nlet payload = PayloadBuilder::new()\n    .text(\"test message\")\n    .channel(\"#testing\")\n    .username(\"My Bot\")\n    .icon_emoji(\":chart_with_upwards_trend:\")\n    .build()\n    .expect(\"we know this payload is valid\");\n\nmatch slack.send(\u0026payload) {\n    Ok(()) =\u003e println!(\"Message sent!\"),\n    Err(err) =\u003e eprintln!(\"Error: {err:?}\")\n}\n```\n\n## Attachments\n\nTo create a payload with just an attachment:\n\n```rust\nuse slack_hook::{PayloadBuilder, AttachmentBuilder};\n\nlet attachment = AttachmentBuilder::new(\"my text\")\n    .color(\"#b13d41\")\n    .build()\n    .unwrap();\nlet _payload = PayloadBuilder::new()\n    .attachments(vec![attachment])\n    .build()\n    .unwrap();\n```\n\n## Text with Links\n\nSlack messaging API permits you to send links within text. However, given the\ndifferent formatting rules, these text fragments need to be specified as\nfollows:\n\n```rust\nuse slack_hook::{PayloadBuilder, SlackTextContent, SlackLink};\n\nlet text = [\n    SlackTextContent::Text(\"Hello\".into()),\n    SlackTextContent::Link(SlackLink::new(\"https://google.com\", \"Google\")),\n    SlackTextContent::Text(\", nice to know you.\".into())\n];\nlet _ = PayloadBuilder::new()\n.text(text.as_slice())\n.build()\n.unwrap();\n```\n\nSending this payload will display the following in slack (note: each element\nof the `Vec` has been space-separated):\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;Hello [Google](https://google.com), nice to know you.\n\nThis technique can be used for any function that has the `Into\u003cSlackText\u003e`\ntrait bound.\n\n# License\n\nThis library is distributed under similar terms to Rust: dual licensed under\nthe MIT license and the Apache license (version 2.0).\n\nSee [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and\n[COPYRIGHT](COPYRIGHT) for details.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostly%2Frust-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostly%2Frust-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostly%2Frust-slack/lists"}