<div align="center">
<img src="https://devhub.vip/pages/docs/img/hyperlane.png" alt="hyperlane-plugin-mq logo" height="120">
# hyperlane-plugin-mq
**Async Message Queue & Sharded In-Memory Broker Plugin**
[](https://crates.io/crates/hyperlane-plugin-mq)
[](https://docs.rs/hyperlane-plugin-mq)
[](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[](https://www.rust-lang.org)
[](../../LICENSE)
[Workspace Overview](../../README.md) · [Plugin Catalog](../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-mq/latest/)
</div>
---
## Overview
`hyperlane-plugin-mq` supplies an asynchronous `MessageBroker` abstraction and a 64-shard `InMemoryBroker` with consumer groups, visibility timeouts, retries, and dead-letter queues for [`hyperlane`](../../README.md) services.
## Installation
```sh
cargo add hyperlane-plugin-mq
```
## Usage
```rust
use hyperlane_plugin_mq::{MqConfig, MqPlugin};
fn setup_mq() {
MqPlugin::init(MqConfig::default());
}
```
## Verification
```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-mq --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-mq --all-features
```
## License
This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.
## Contact
For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).