-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New release broke gvariant feature #1125
Comments
The error doesn't happen on |
Yeah, I saw that but it's some weird cargo dependency feature management mess that I couldn't figure out but I did not realize that affects our users so didn't care much and worked around it (72ccc73). Interestingly, This hack makes diff --git a/zbus_macros/Cargo.toml b/zbus_macros/Cargo.toml
index 1f35d35d..c0a4a302 100644
--- a/zbus_macros/Cargo.toml
+++ b/zbus_macros/Cargo.toml
@@ -20,6 +20,7 @@ readme = "README.md"
default = []
# Enable blocking API.
blocking-api = ["zbus/blocking-api"]
+gvariant = ["zvariant/gvariant", "zvariant_utils/gvariant"]
[lib]
proc-macro = true I don't see any harm in that so if you could check if that makes things work for you, I'll commit it and hope for the best. P.S. This whole gvariant support is getting too much to handle for me, especially mixed with zbus etc. I hope to someday split it into a separate crate since I've long abandoned the plans of using gvariant as a dbus2 protocol (which was its original intention). |
While thinking about it, I had another look at So I'm wondering to just deprecate the gvariant support in favour of that crate. |
Thanks for the fix! Sorry for not reporting earlier, been quite busy with other stuff.
I will investigate the crate and see if it can work out and eventually switch to using it. |
Cool, thanks for your understanding. Rest assured, even if I do go ahead with dropping the support, it'll only be in zvariant 6.0 and that's not happening for at least some months (probably more). So you've plenty of time and you'll get deprecation warning long before then. |
@zeenix would it be possible to include the fix for this in the upcoming release please?:) |
I released yesterday exactly for this but soon after the release, Maximiliano told me that the fix doesn't work. I had assumed from our conversation here that you tested the fix. If you could rejoin the matrix channel, it'd help avoid these misunderstandings. 😉 Having said that, I really am not sure how to fix the issue. Perhaps re-addition of gvariant feature to the zbus crate is the only way here. I really don't want to do that but if that's the only way, I'd be willing to do that. Maximiliano said he'll dig deeper so I'm now waiting on him. |
Interesting because I tested the changes locally and they worked. I will investigate further later :) |
Oh that is indeed interesting. I assume you tested against oo7 and not just the zbus repo itself (the latter was indeed "fixed" by #1143). |
If you build zbus from git using
cargo build --features gvariant
it would fail with the followingIt is something I have noticed from the CI bump of zbus at bilelmoussaoui/oo7#154.
Note this happens even if I have
The text was updated successfully, but these errors were encountered: