Skip to content

zbus-2.0.0-beta

Choose a tag to compare

@zeenix zeenix released this 11 May 07:50
· 4812 commits to main since this release

This is the beta of our upcoming API-breaking 2.0 release.

  • azync::Connection API now almost identical to that of synchronous Connection. It:
    • no longer exposes transport mechanism to user as most users don't care about that.
    • provides separate Stream and Sink implementation types.
    • uses internal mutability.
    • Implements Clone trait.
    • Provides is_bus and as_raw_fd methods.
  • Because of the above, Connection is now just a thin blocking wrapper around azync::Connection, which will make implementation of high-level async API in the near future, much easier.
  • Drop azync::ConnectionType.
  • raw and handshake modules now internal. Use azync::Connection if you need to an asynchronous way of creating the connection.
  • Drop all deprecated API.
    • Default message handler API of Connection.
    • Errors that are no longer returned by zbus API.
  • Drop unneeded lifetime specifiers on ObjectServer.
  • Allow reading and writing to the same connection from different threads/tasks at the same time. Previously this would deadlock.
  • Add gvariant feature to enable/disable gvariant support of gvariant.
  • Fix some links in the docs.
  • Add dep on async-lock.
  • Replace futures-executor dep with pollster.
  • Disable unneeded default features of futures-util crate.
  • Drop futures-channel, nb-connect and polling dependencies.
  • Use latest nix release (0.19.0).