#beanstalkd #tokio #client #delete

mamenoki

Complete implementation of a Beanstalkd client based on the Tokio runtime

2 releases

0.1.1 Oct 22, 2024
0.1.0 Jul 12, 2023

#664 in Asynchronous

Download history 15/week @ 2024-07-27 7/week @ 2024-08-03 1/week @ 2024-08-10 3/week @ 2024-09-07 8/week @ 2024-09-21 1/week @ 2024-09-28 2/week @ 2024-10-12 170/week @ 2024-10-19 16/week @ 2024-10-26

188 downloads per month
Used in stilgar

MIT license

35KB
735 lines

Welcome to Mamenoki!

This is a Rust complete implementation of a Beanstalkd client based on the tokio runtime.

Building and running

Build with :

$ cargo doc --no-deps    # for auto docs
$ cargo build --release  # actual build

Tests

You can run all the tests locally or in a CI environment with:

$ docker compose up all_tests --build

You can continuously run all the tests during the development (they will be re-run at every change) with:

$ docker compose up dev_test_loop --build

Usage examples

There are some usage examples in the examples folder: they all create a connection to beanstalkd and the send different commands to it.

  • reader.rs watches a beanstalk tube, reserves a job and deletes it. You can run it with docker compose up example_reader.
  • writer.rs uses a tube and puts a job into it. You can run it with docker compose up example_reader.
  • stats.rs requests the global beanstalkd stats and the stats for a tube. You can run it with docker compose up example_stats.

Dependencies

~4–11MB
~116K SLoC