#daemon #task #client #client-send #communicate #shared #pueue

pueue-lib

The shared library to work with the Pueue client and daemon

38 releases

new 0.28.1 Feb 17, 2025
0.27.0 Dec 1, 2024
0.26.1 Jun 4, 2024
0.26.0 Mar 22, 2024
0.12.2 Mar 30, 2021

#13 in #communicate

Download history 73/week @ 2024-10-30 46/week @ 2024-11-06 37/week @ 2024-11-13 50/week @ 2024-11-20 184/week @ 2024-11-27 87/week @ 2024-12-04 133/week @ 2024-12-11 27/week @ 2024-12-18 14/week @ 2024-12-25 15/week @ 2025-01-01 33/week @ 2025-01-08 16/week @ 2025-01-15 20/week @ 2025-01-22 52/week @ 2025-01-29 156/week @ 2025-02-05 161/week @ 2025-02-12

392 downloads per month
Used in pueue

MIT/Apache

105KB
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.
  • 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.

Dependencies

~15–26MB
~473K SLoC