2 releases

Uses old Rust 2015

0.1.1 Feb 22, 2018
0.1.0 Feb 20, 2018

#2114 in Asynchronous

MIT/Apache

53KB
1K SLoC

Batch

A distributed task queue library written in Rust using RabbitMQ as a message broker.

This library allows you to send a task to a RabbitMQ broker, so that a worker will be able to pull it and execute the associated handler. It leverages the futures and tokio-core crates to provide asynchronous I/O operations.

Installation

Add this to your Cargo.toml:

[dependencies]
batch = "0.1"

Note: Task serialization depends on serde, so you will have to add it to your project's dependencies as well.

Then add this to your crate root:

#[macro_use]
extern crate batch;

Examples are available on GitHub or you can continue and read the Getting Started guide.

Features

  • codegen (enabled by default): Automatically re-exports the procedurals macros of batch-codegen from the batch crate.

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

~27MB
~620K SLoC