Beanstalkd Client for Rust
Beanstalkd is a fast, general-purpose work queue. beanstalkc-rust is a Beanstalkd Client to communicate with Beanstalkd Server based on the protocol defined here.
Inspired by rust-beanstalkd and beanstalkc.
Why
Several repositories can be found from here, why not just using one of those directly? The reasons are as follows:
- Some of them were poorly documented;
- Some of them were not actively developed or maintained;
- This rust-beanstalkd repo with the most stars was already out-dated, since not all the beanstalkd commands were supported.
Features
- Easy to use;
- Support custom connection timeout;
- Support all the commands defined in the protocol.txt;
- Well documented.
Install
Add this dependency to your Cargo.toml
~
beanstalkc = "^0.2.0"
Documentation
Full documentation can be found here.
Usage
More examples can be found here.
Producer
use Beanstalkc;
use time;
Consumer
use Beanstalkc;
use time;
License
Licensed under the MIT license
Contribution
Please feel free to report any issues~