A library to encode and decode DBus server address.
Add this to your Cargo.toml
:
toml
[dependencies]
dbus-server-address-parser = "~1.0.1"
```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);
} ```