Skip to main content

Requirements

  • Rust 1.70 or later
  • A supported message broker (Redis, RabbitMQ, or SurrealDB)

Add the dependency

Add Broccoli to your Cargo.toml:

Feature flags

Broccoli uses feature flags to enable different message brokers. By default, only Redis is enabled.

Available features

Using specific brokers

Management feature

Enable the management feature to access queue status and monitoring capabilities:

Required dependencies

Broccoli requires async runtime support. Add Tokio and serde to your project:
For working with timestamps in your message payloads, you may also want:

Verifying installation

Create a simple test to verify Broccoli is installed correctly:
Run with:

Next steps

Quickstart

Build your first producer and consumer

Brokers

Configure your message broker