fix(deps): update rust crate zbus to v5 (v1) #2005
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3
->5
Release Notes
dbus2/zbus (zbus)
v5.1.0
: 🔖 zbus 5.1.0Compare Source
rust-version
to1.80
. #1107unixexec
transport.Command
stdio socket type. This socket communicates with a spawned child process viaits standard input and output streams.
winnow
.v5.0.1
: 🔖 zbus 5.0.1Compare Source
zvariant_utils
dep. We don't always releasezvariant_utils
together with othercrates, so unlike the macros crates, the versions don't need to be tied together. This will also
allow us to bring
zvariant_utils
improvements to users without having to release all dependentpackages as well.
v5.0.0
: 🔖 zbus 5.0.0Compare Source
encoding and decoding.
proxy
macro respects visibility. This includes all types generated byproxy
. Unfortunatelythis means that the existing code will have to set the visiblity explicitly to
pub
if theywere relying on the generated proxy to be public.
DBUS_COOKIE_SHA1
auth mechanism. #727sha1
crate as a dependency, which can be problematic for some users. #543EXTERNAL
is not an option, you might as well just useANONYMOUS
.authentication mechanisms with one of them being no-authentication, this really makes sense
since we can just autodetect what authentication method to use for a specific socket type on a
specific platform. This also simplifies the handshake logic and will allow us to pipeline the
whole client-side handshake in the future, when we can drop the xdg-dbus-proxy workarounds. #781
same type of arguments.
fdo
API.interface
now generates a trait, Signals, that provides the same signalmethods as user specifies but w/o the
SignalEmitter
argument (#871). The macro also generates2 implementations of this trait for:
method.
SignalContext::emit
. Add a new method to SignalContext that allows emitting a signal fora given interface and singal name.
mechanism. We'll use this in a following commit to avoid an allocation.
should be used with it. The implementation can choose this based on the socket type and the
target platform.
be private.
SignalContext
toSignalEmitter
. Since now this emits signals, this is a moreappropriate name. We keep a deprecated
SignalContext
type alias as well as thesignal_context
attribute ofinterface
for not completely breaking the existing code.AuthMechanism
in the root asdeprecated.
the conversion to NonZeroU32 panics. #946
the
Proxy
API.p2p
feature is enabled.serde_bytes
Cargo feature. This is just a proxy feature forzvariant
'sserde_bytes
feature. #1052
blocking-api
tozbus
&zbus_macros
. When enabled, thezbus::blocking
module is available. When disabled,proxy
macro ignores the value of
gen_blocking
attribute and doesn't generate blocking proxy. Thisfeature is enabled by default.
camino
feature as proxy for zvariant feature of the same name.sha1
crate.futures-sink
.rand
now an optional dependency. It is only enabled ifp2p
feature is enabled. This meansthat
rand
dependency is dropped for typical users.blocking
module docs.v4.4.0
: 🔖 zbus 4.4.0Compare Source
heapless
feature, which is just a proxy tozvariant
feature of the same name.v4.3.1
: 🔖 zbus 4.3.1Compare Source
issue in xdg-dbus-proxy has already been fixed, it will take some time before the fix is
released and is widely available.
type. We might need to add an attribute to control this in the future, as this as this may not
always be what the user wants.
mdbook-toc
from @badboy.two distinct concepts separate.
v4.3.0
: 🔖 zbus 4.3.0Compare Source
interface
can now generateproxy
for you. #236object_server::ResponseDispatchNotifier
serde::Deserialize
for it.blocking::Connection::call_method
docs.v4.2.2
: 🔖 zbus 4.2.2Compare Source
methods by default. #799
v4.2.1
: 🔖 zbus 4.2.1Compare Source
c1aa5c7
, where westarted to invalidate properties in every
PropertyChanged
signal. This is wrong anyway but italso meant zbus interfaces breaking against gio. #765
assert!
instead ofdebug_assert!
.debug_assert!
is removed in release builds, alongwith any values computed inside it. This meant that since the use of
debug_assert!
incommit
7fc3ab7
, the fdo interfaces weren't getting added fornodes for release profile. Let's use
assert!
instead. #764pipelining, hence we need to handle
NEGOTIATE_UNIX_FD
command's response before sending outBEGIN
command andHello
method call message.full message could be received at the end of the client handshake process.
v4.2.0
: 🔖 zbus 4.2.0Compare Source
dbus_interface
now provides aspawn
attribute to control whether the method call handling is spawned as a task or not.
pre-authenticated socket. This could also be socket that doesn't need any authentication. #590.
method have a default implementation that just uses the lower-level sibling methods. Implementers
can either override this method or the lower-level method, depending on the underlying socket
they're using.
communication. This can be used with
connection::Builder::authenticated_socket
to create aconnection for in-process communication. #591.
Hello
method call to thebus. This reduces unnecessary round-trips & hence latencies. #493
one mechanism to be set.
auth_mechansim
. This is inpreparation for #731, when we will remove this method entirely.
Return an error instead of an explicit panic if attempted, since it is not an internal invariant.
windows-gdbus
feature and associated hacks.Turns out that the reference D-Bus implementation supports autolaunch fine and we don't need
special support for gdbus binary. Hopefully, in the near future, busd will also support it. #687
Interface
being unstable API. Also recommend what people should do whendbus_interface
isn't enough.autolaunch addresses so there is no need to create an address with scopes.
CANCEL
commandduring a handshake, the server must move on to the next handshake method available (if any).
client is unknown or invalid in the current context, we shouldn't completely error out but rather
send an error and continue as if nothing happened.
output.
v4.1.2
: 🔖 zbus 4.1.2Compare Source
To go with zbus_macros 4.1.2. Other changes:
v4.1.1
: 🔖 zbus 4.1.1Compare Source
The actual change is in zbus_macros 4.1.1.
v4.1.0
: 🔖 zbus 4.1.0Compare Source
v4.0.1
: 🔖 zbus 4.0.1Compare Source
ProxyDefault
forblocking::Proxy
that was missed in 4.0.0.v4.0.0
: 🔖 zbus 4.0.0Compare Source
A new API-breaking release that brings in a huge amount of changes. Most using code should still
compile (with deprecation warnings) and work without changes. Hightlights:
zbus_macros release notes for details, including commands to automatically update your
code.
deprecation warnings will guide you to the new paths.
xml
and
quick-xml
feature flags are removed as a result. #413.&zvariant::serialized::Data
.unsafe (even though it's not marked as such) since it disassociates the FDs from the message and
the caller is free to close them while message is still referencing them.
likely used by very few people, who can use the
send
method instead.&Guid
now, instead of a string.constructed through an address with GUID in it, we should verify this GUID is the same as one
received from the server during the handshake.
halves.
Guid
now has a lifetime parameter, andOwnedGuid
is a new type that's a wrapper aroundGuid<'static>
. Internally,Guid
is now awrapper around
zvariant::Str
and is now a very similar type to otherzvariant::Str
wrappertypes.
address::Transport.
Address` isno longer an enum but a struct with hidden fields. #476.
present and provide API to set a GUID on an
Address
instance.unix:tmpdir
andunix:dir
transports.for<'d> zvariant::DynamicDeserialize<'d>
on the result type of a call is sufficient todeserialize; use this bound instead of the stricter
DeserializeOwned + zvariant::Type
.p2p
feature. Given that typical users do not need this API, we don't enable it by default.bus-impl
cargo feature. API that is only needed by bus implementations now gated behind this non-default cargo feature. #480.the peer-to-peer and bus implementation API respectively.
async-recursion
for targets other than MacOS and Windows.blocking::ObjectServer
. Not exactly a smart pointer. Also other blocking wrappers don't do that. #475.Connection
managing the serial numbers.option-as-array
feature. This is a mainly azvariant
proxy/forwarding feature.enabled. This only causes confusion if user enables it since then
Option<T>
haszvariant::Type
implemented but D-Bus encoding doesn't support that and people get runtime errors instead.
fd-passing on socket type that doesn't support it, reject the request.
new_bare is just a wrapper around now, since all proxy types implement ProxyDefault trait. #417.
allowing all generated proxies to implement this trait.
generic code around different proxy types. #433
v3.15.2
: 🔖 zbus 3.15.2Compare Source
To go with zbus_macros 3.15.2. Other changes:
v3.15.1
: 🔖 zbus 3.15.1Compare Source
v3.15.0
: 🔖 zbus 3.15.0Compare Source
🐛 Add missing
nix
feature.🏷️ Add ResponseDispatchNotifier type. A wrapper interface method response type that notifies the
caller of the response being sent off.
🚸 Specify service and object path for Monitoring & Debug.Stats proxies. These defaults to be
based on the interface name otherwise and that's not the expected bhaviour.
✏️ Fix a typo in docs.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.