dbus-addr

Crates.iodbus-addr
lib.rsdbus-addr
version
sourcesrc
created_at2024-01-31 14:10:34.298794
updated_at2024-10-15 11:00:14.098311
descriptionD-Bus address parsing
homepage
repositoryhttps://github.com/elmarco/dbus-addr
max_upload_size
id1121827
Cargo.toml error:TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Marc-Andre Lureau (elmarco)

documentation

https://docs.rs/dbus-addr/latest/dbus-addr/

README

Rust D-Bus address parsing

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();

Miscellaneous and caveats on D-Bus addresses

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

Acknowledgments

  • This project is originated from the zbus project.

  • Special thanks to all the contributors who have been involved in this project.

License

MIT license

Commit count: 19

cargo fmt