Sinono3 / souvlaki

A cross-platform library for handling OS media controls and metadata.
MIT License
79 stars 15 forks source link

Add zbus option #33

Closed 101100 closed 1 year ago

101100 commented 1 year ago

This adds a use_zbus feature flag that will use the zbus library instead of the default dbus library. I've made teh use_dbus feature the default to maintain the current behaviour. Since there is a default feature, to use zbus you will need the following in Cargo.toml.

souvlaki = { version = "TBD", default-features = false, features = ["use_zbus"] }

I also added a separate build of zbus to the GitHub actions on Linux only to ensure it builds with each new update.

@Sinono3 If you'd prefer, I could make zbus the default or exclude any default to force users to pick one.

Fixes #18.

Sinono3 commented 1 year ago

This is great. Thank you!