Crates.io | dbus-addr |
lib.rs | dbus-addr |
version | 0.2.0 |
created_at | 2024-01-31 14:10:34.298794+00 |
updated_at | 2024-10-15 11:00:14.098311+00 |
description | D-Bus address parsing |
homepage | |
repository | https://github.com/elmarco/dbus-addr |
max_upload_size | |
id | 1121827 |
size | 74,498 |
This project provides a Rust library for handling D-Bus addresses following the D-Bus specification.
Server addresses consist of a transport name followed by a colon, and then an optional, comma-separated list of keys and values in the form key=value.
use dbus_addr::DBusAddr;
let addr: DBusAddr = "unix:path=/tmp/dbus.sock".try_into().unwrap();
Assumes values are UTF-8 encoded.
Accept duplicated keys, the last one wins.
Assumes that empty key=val
is accepted, so transport:,,guid=...
is valid.
Allows key only, so transport:foo,bar
is ok.
Accept unknown keys and transports.
This project is originated from the zbus project.
Special thanks to all the contributors who have been involved in this project.