π zbus_macros 4.0.0
github-actions
released this
12 Feb 14:43
·
1102 commits
to main
since this release
dbus_proxy
- π rename to
proxy
(with dbus_proxy still available as deprecated) that useszbus
attributes. - ποΈ Support
object
attr being a path. under a different module, rather than just being an
identifier. Fixes #444. - π₯
assume_defaults
attribute now defaults to false. - π₯ Drop Deref impl for generated proxy types. Fixes #475.
- β¨ Generate Message getter for generated signal structs.
- β¨ Add as_mut method for generated Proxy types.
- π rename to
dbus_interface
- π renamed to
interface
(with dbus_interface still available as deprecated) that useszbus
attributes. - ποΈ
header
arg method deprecated for newmessage
arg. - β¨ Support for
emits_changed_signal
flag in properties. This was already supported in the proxy
macro. - π Handle
cfg
attributes in methods. Fixes #327.
- π renamed to
- π₯ Rename
dbus_error
attribute ofDBusError
tozbus
. - π½οΈ Adapt to zbus and zvariant 4.0 changes.
- β¬οΈ Bump zvariant_utils to 1.1.0.
- β¨ Use SerializeTuple in proxy calls. This allows using types that only implement DynamicType in
macro-generated proxy functions. - β¬οΈ Bump MSRV to 1.75.
- π§ Switch to Rust 2021. This doesn't affect our users but gives us some features.
You can use these commands in the specified order to update names in your project:
find . -name '*.rs' -exec sed -i 's/dbus_proxy(property/zbus(property/g' \{\} \;
find . -name '*.rs' -exec sed -i 's/dbus_proxy(signal/zbus(signal/g' \{\} \;
find . -name '*.rs' -exec sed -i 's/dbus_proxy/proxy/g' \{\} \;
find . -name '*.rs' -exec sed -i 's/dbus_interface(property/zbus(property/g' \{\} \;
find . -name '*.rs' -exec sed -i 's/dbus_interface(signal/zbus(signal/g' \{\} \;
find . -name '*.rs' -exec sed -i 's/dbus_interface/interface/g' \{\} \;