Update zbus to v6 #1546
Ew. I don't think there's a better way of doing this, but I still hate it.
When we started using zbus, it was on v2.x. They're on v6.x now. That's 4 major versions in not that long a time. Might be smart to investigate alternatives that produce less churn.
That's a separate problem, though. Code LGTM
commits should be squashed in one as I will get compile failures during a bisect otherwise
this is creating a new runtime for each call, this seems wasteful assuming there is a non significant setup cost each time? I think it would make the most sense to kee the runtime. Cant we store the runtime with the the connection together as one thing to resuse the same runtime for all calls?
That produces an ugly panic if the runtime setup ever fails, errors should be returned as result.
Also a reason to only setup the runtime once.
Requested changes.
ready for re-review
LGTM
Luap99
fpob
zbus 6 dropped the blocking API and provides only an async API. It was necessary to refactor the code and add a new async driver trait with a sync wrapper. Apart from that, only minor renames were needed.
Supersedes: https://github.com/containers/netavark/pull/1527