beanstalkd 0.4.1

Easy-to-use beanstalkd client for Rust (IronMQ compatible)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate beanstalkd;

use beanstalkd::Beanstalkd;

fn main() {
    let host = "mq-aws-us-east-1.iron.io";
    let token = "your token";
    let project_id = "your project id - not the name";

    let mut beanstalkd = Beanstalkd::connect(host, 11300).unwrap();
    let _ = beanstalkd.put(&(format!("oauth {} {}", token, project_id)), 0, 0, 10000);
    let _ = beanstalkd.put("Hello World", 0, 0, 10000);
}