zbus-2.0.0-beta.7
·
3963 commits
to main
since this release
- async
ObjectServer&InterfaceAPI. - async API now the primary API, with blocking wrappers provided under
blockingmodule. - API to get cached properties from a Proxy.
- Break a cyclic ref.
- No
Asyncprefix when only generating async proxy. dbus_proxynow allows you to:- disable generation of each proxy type.
- choose names of generated proxy types.
- API to quick access essential message fields.
- Remove unused
Error::InsufficientData. - Avoid some unneeded allocations.
- Don't resolve destination for non-bus connections.
- Add
reply_dbus_errorhelper to Connection. - Add
DBusErrortrait.zbus_macros::DBusErrorimplements this trait for you. MessageBuildershould only requireMessageHeaderto create replies.- Implement
CloneforMessageHeader. - Move name registration API from
ObjectServertoConnection. - Add
Connection::monitor_activity(). - Re-export
async-traitandfutures-utilcrates. - Drop
AsRawFdimpl forConnection. ObjectServer::dispatch_messagenow internal.- Drop
ObjectServer::connection(). ObjectServernow an on-demandConnectionattribute.- Proxy signal handlers now called automatically.
- Drop now unneeded
SignalReceivertype. - Drop
Proxy::handle_signal. - Drop now unneeded
Proxy::next_signalmethods. - Drop now unneeded
Connection::receive_message. - Bring back
MessageStreamand addblocking::MessageStreamwrapper that implementsIterator. - Rename
MessageBuilder::with_flagtowith_flags. - More flexible
MessageBuilderAPI. - Add
MessageFields::replace(). - Return owned fds from
Message::disown_fds(). - Don't disown the FDs in the messsage as part of
Connection::call. - Drop
OwnedFdin favor of newzvariant::OwnedFd. - Track destination owner changes.
- Don't require proxy destination to be known.
- Add
ManagedObjectstype alias. - Add
raw::Sockettrait that allows creation of customConnectionimplementation. Implementations forasync_io::Async<std::os::unix::net::UnixStream>andtokio::net::UnixStream(enabled withtokiofeature) are provided. - Provide
Addressconstrutors. - Replace
internal-executorfeature withConnectionBuilder::internal_executor. - Don't hardcode fallback session bus address.
- Add
ObjectServer::get_interface. - Add
ObjectServer::with_mut. - Drop now unneeded ObjectServer::local_node_emit_signal.
- Add
SignalContexttype.- interface signals now take
&SignalContextinstead of&self. <property>_changedmethods now take aSignalContextargument.ObjectServer::with::funcnow takes an&SignalContextarg.
- interface signals now take
- Add
Message::body_as_bytes. - Remove now-unused
Error::UnmatchedBodySignature. - Change
Message::bodyto usezvariant::DynamicDeserialize. - Switch bounds to
zvariant::DynamicTypewhere appropriate. ObjectServernowSend + Sync.Interfacenow requiresSend + Sync.- Re-export
zvariantandzbus_namesasnames. - Many other fixes/improvements.
- Dependencies changed:
- Re-add
event-listenerdep. - Require async-trait.
- Add
async-stddev dependency. - Upgrade
serde_reprto 0.1.5. - Drop now unneeded
scoped-tlsdep.
- Re-add
All contributors to this release:
- Daniel De Graaf code@danieldg.net
- Marc-André Lureau marcandre.lureau@redhat.com
- Ross Lannen ross.lannen@gmail.com
- Tom Parker-Shemilt palfrey@tevp.net
- Zeeshan Ali zeenix@gmail.com