dbus-server-address-parser

A library to encode and decode DBus server address. Build status Dependency status Code coverage Latest version License

Usage

Add this to your Cargo.toml:

toml [dependencies] dbus-server-address-parser = "~1.0.0"

Example

```rust use dbusserveraddress_parser::Address;

fn main() { let addressesstr = "unix:abstract=/tmp/dbus-U8OSdmf7;tcp:host=127.0.0.1,port=30958"; // Decode address let addresses = Address::decode(addressesstr).unwrap(); // Encode address let addresses_string = Address::encode(&addresses);

println!("{}", addresses_string);

} ```