mirror of
https://github.com/JakeStanger/system-tray.git
synced 2026-07-11 06:15:52 +01:00
[GH-ISSUE #16] Hey, wonder if you're interested in Stream API #7
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/system-tray#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ogios on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/16
Really enjoy
system-tray, big thanks to you.Recently i've been working on a
StreamAPI which is able to run this without tokio.it performs like this:
and we can do this for zbus:
it is almost done https://github.com/ogios/system-tray-zbus5/pull/10, but of course it is the first time i write async rust code like this, so it's tagged
unstable.i can port it here if you are interested.
@JakeStanger commented on GitHub (Feb 5, 2025):
Hey, I agree it would be good to be able to support async runtimes other than Tokio. I'm not seeing why all of this work is necessary though, so might need some explanation.
zbusis runtime-agnostic and we can just offer a feature flag to turn its special Tokio support on/off.What does the
StreamAPI do here do that I'm missing?@ogios commented on GitHub (Feb 5, 2025):
yes for zbus we can provide a feature flag, but this crate still needs tokio as a dependency when using the Client.
the stream api i'm working on is not bounded to tokio which means the user can choose to remove the tokio dependency
@JakeStanger commented on GitHub (Feb 12, 2025):
I see. In that case yes I think it would be a good thing to have.
From a look at your branch, it seems to duplicate a lot of the code. I'd want to minimise that before merging in.