Skip to content

zbus-2.0.0-beta.8

Choose a tag to compare

@zeenix zeenix released this 11 May 07:54
· 3755 commits to main since this release

The API freeze beta release for 2.0. After this release, the API will only be changed if absolutely necessary.

  • Proxy:
    • Drop signal callback API. The SignalStream and SignalIterator API is more than sufficient.
    • Abstract away property invalidation in PropertyStream and handle it internally.
    • Add receive_all_signals
    • Add call_noreply for making calls to method that don't reply.
    • Rename receive_property_stream to receive_property_changed.
    • Typed return value for fdo::DBusProxy::get_connection_credentials.
    • Add blocking::{SignalIterator, PropertyIterator}.
    • Add PropertyChanged::get_raw.
    • Add cached_property_raw.
    • Add API to track destination name ownership changes on the bus.
    • Allow lazy population of property cache and make it the default behavior.
  • ObjectServer:
    • at and remove no longer require a mutable ref, allowing interfaces to be easily added and removed from Interface methods.
    • Unified API to get an Interface ref.
    • Drop start_dispatch
  • Connection:
    • Add ConnectionBuilder::name to register names at connection setup time.
    • Add ConnectionBuilder::serve_at to setup ObjectServer interfaces before the bus connection is established.
    • request_name now correctly fails if name is already taken on the bus.
    • Rename blocking::MessageStream to blocking::MessageIterator.
    • Add API to track receiving order of messages on a connection and implement OrderedStream for MessageStream and SignalStream.
    • impl FusedStream for MessageStream.
  • DBusError trait:
    • Move name and description methods from DBusError macro-generated code to this trait.
    • Rename reply_to to create_reply.
  • Rename Message::disown_fds to Message::take_fds.
  • SignalContext:
    • Add from_parts, as the infallible constructor.
    • Add to_owned.
  • Dependencies changed:
    • Add ordered-stream.
    • Bump nix to 0.23.0.
    • Bump enumflags2 to 0.7.1.
    • Bump zvariant to 3.
    • Drop slotmap.
    • Switch from test-env-log to test-log.
  • Many other fixes and improvements.