Skip to content

πŸ”– zbus_macros 4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Feb 14:43
· 1102 commits to main since this release
25876f3
  • dbus_proxy
    • 🚚 rename to proxy (with dbus_proxy still available as deprecated) that uses zbus 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.
  • dbus_interface
    • 🚚 renamed to interface (with dbus_interface still available as deprecated) that uses zbus
      attributes.
    • πŸ—‘οΈ header arg method deprecated for new message arg.
    • ✨ Support for emits_changed_signal flag in properties. This was already supported in the proxy
      macro.
    • πŸ› Handle cfg attributes in methods. Fixes #327.
  • πŸ’₯ Rename dbus_error attribute of DBusError to zbus.
  • πŸ‘½οΈ 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' \{\} \;