dbus-addr 0.2.0

D-Bus address parsing
Documentation
  • Coverage
  • 75.93%
    41 out of 54 items documented3 out of 8 items with examples
  • Size
  • Source code size: 74.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 10.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • elmarco/dbus-addr
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • elmarco

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