8 releases (4 breaking)

0.10.3 Jun 7, 2024
0.10.1 Jun 5, 2024
0.10.0 Apr 20, 2024
0.9.0 Jan 5, 2023
0.5.1 Apr 2, 2020

#660 in Network programming

Download history 203/week @ 2024-11-17 216/week @ 2024-11-24 213/week @ 2024-12-01 290/week @ 2024-12-08 326/week @ 2024-12-15 428/week @ 2024-12-22 393/week @ 2024-12-29 537/week @ 2025-01-05 473/week @ 2025-01-12 440/week @ 2025-01-19 355/week @ 2025-01-26 420/week @ 2025-02-02 355/week @ 2025-02-09 504/week @ 2025-02-16 459/week @ 2025-02-23 413/week @ 2025-03-02

1,783 downloads per month
Used in greetd-stub

GPL-3.0-only

17KB
203 lines

greetd IPC protocol library

This library implements the greetd IPC protocol.

The library exposes a Request and a Response enum, representing the valid protocol messages. Furthermore, codec implementations are available to serialize these to/from both sync and async readers/writers. The availability of these are controlled by feature flags.

Additional types are part of the different request and response values.

See agreety for a simple example use of this library.

Format

The message format is as follows:

+----------+-------------------+
| len: u32 | JSON payload: str |
+----------+-------------------+

Length is in native byte-order. The JSON payload is a variant of the Request or Response enums.

Request and response types

See Request and Response for information about the request and response types, as well as their serialization.

Dependencies

~0.6–7.5MB
~51K SLoC