#daemon-client #pueue

pueue-lib

The shared library to work with the Pueue client and daemon

40 releases (17 breaking)

Uses new Rust 2024

0.30.0 Jul 7, 2025
0.29.0 Mar 9, 2025
0.28.1 Feb 17, 2025
0.27.0 Dec 1, 2024
0.12.2 Mar 30, 2021

#825 in Network programming

Download history 21/week @ 2025-05-27 26/week @ 2025-06-03 59/week @ 2025-06-10 49/week @ 2025-06-17 39/week @ 2025-06-24 133/week @ 2025-07-01 192/week @ 2025-07-08 94/week @ 2025-07-15 49/week @ 2025-07-22 57/week @ 2025-07-29 64/week @ 2025-08-05 28/week @ 2025-08-12 151/week @ 2025-08-19 91/week @ 2025-08-26 60/week @ 2025-09-02 80/week @ 2025-09-09

385 downloads per month
Used in 3 crates

MIT/Apache

125KB
2K SLoC

Pueue-lib

Test Build Crates.io docs License: MIT

This is the shared library used by the Pueue client and daemon.

It contains everything you need to communicate with the daemon:

  • The [State], which represents the current state of the daemon as exposed to clients.
  • The [Task], [TaskResult] and [TaskStatus]
  • The [Settings] used by both clients and the daemon.
  • async and blocking Network code. Everything you need to communicate with the daemon.
  • A reference Client implementation. This is available with the client feature. The client also implements Client::send_request and Client::receive_response.

It also contains helper functions to read local logs.

Pueue-lib is a stand-alone crate, so it can be used by third-party applications to either manipulate or monitor the daemon or to simply write your own front-end for the daemon.

Features

For a minimal setup, disable default features and enable client and network or network_blocking.

  • client Adds a Client and/or BlockingClient implementation, depending on whether network and/or network_blocking features are active.
  • network adds async network and protocol functions.
  • network_blocking adds blocking std network and protocol functions.
  • log adds functions for reading pueue's log files on the local machine.
  • settings Settings struct used by both the daemon and client.

Dependencies

~2–15MB
~182K SLoC