#slack #model #validation #json #models

slack-blocks

Models + clientside validation for Slack’s JSON Block Kit

20 releases (8 breaking)

✓ Uses Rust 2018 edition

new 0.9.2 Jul 3, 2020
0.9.0 Jun 29, 2020

#248 in Data structures

Download history 20/week @ 2020-06-08 119/week @ 2020-06-15 64/week @ 2020-06-22 117/week @ 2020-06-29

91 downloads per month

MIT/Apache

72KB
732 lines

crates.io docs.rs Maintenance

slack-blocks

This crate brings Slack's terrific Block Kit 🔗 to the Rust ecosystem.

This crate should hopefully come in handy if you need to build some rich functionality, or just want to send some slack messages without having to know Block Kit.

Inside, you'll find simple models with an API that is thoroughly documented and (hopefully) easy to use.

This is currently being actively developed so watch the repo for a stable v1 release!

Contributing

If you're interested in contributing, head over to the issues and see what's left to do to get this crate fully usable and stable - at the time of writing there are a few big-picture things left to do:

  • Implement Block Elements (#61)
  • Implement Composition Objects (#63)
  • Remove the validator crate from the public API (#9)
  • Add a validation crate feature (#8)

And this doesn't block a v1.0.0, but is definitely something I'm interested in doing for this crate, that will make it a lot nicer to interact with:

  • Add a proc-macro of some kind that allows easy creation of block messages (#??)

This repo follows Conventional Commits in order to fully automate the semver process, but you don't need to follow this convention since the repo is configured for Squash commits on merge.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~4.5MB
~124K SLoC