41 releases
Uses new Rust 2024
| new 0.30.1 | Dec 19, 2025 |
|---|---|
| 0.30.0 | Jul 7, 2025 |
| 0.29.0 | Mar 9, 2025 |
| 0.27.0 | Dec 1, 2024 |
| 0.12.2 | Mar 30, 2021 |
#2 in #daemon-client
241 downloads per month
Used in 3 crates
125KB
2K
SLoC
Pueue-lib
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.
asyncandblockingNetwork code. Everything you need to communicate with the daemon.- [Request] and [Response] message types.
network::send_requestandnetwork::receive_responsehelper functions.
- A reference
Clientimplementation. This is available with theclientfeature. The client also implementsClient::send_requestandClient::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.
clientAdds aClientand/orBlockingClientimplementation, depending on whethernetworkand/ornetwork_blockingfeatures are active.networkadds async network and protocol functions.network_blockingadds blockingstdnetwork and protocol functions.logadds functions for reading pueue's log files on the local machine.settingsSettingsstruct used by both the daemon and client.
Dependencies
~7–22MB
~212K SLoC