dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

Book and README documentation does not match ConnectionBuilder API #234

Closed zeenix closed 1 year ago

zeenix commented 2 years ago

In GitLab by @732 on Nov 23, 2021, 01:28

I'm trying to implement a server for the StatusNotifierWatcher interface using zbus 2.0.0-beta.7.

I am trying to use a ConnectionBuilder instance to request a name at server startup as described in the book, but there is no name() method on ConnectionBuilders in version 2.0.0-beta.7, and this is the latest version in the 2.x line on crates.io

Which version should I use to match the API described in the book?

zeenix commented 2 years ago

@732 Thanks for bringing this to our attention!

The README and the book (source) in the repo are always in sync with the current API in the repo. As for the published book, I think it got accidently updated for an unrelated tag. The fix should be easy. I'll resolve this once the book is fixed. :)

zeenix commented 2 years ago

Fixed.