rsepassi / zigcoro

A Zig coroutine library
BSD Zero Clause License
85 stars 6 forks source link

Do I need to import xev ? #19

Closed Pismice closed 2 months ago

Pismice commented 2 months ago

Hello I am a beginner trying to use your library, I imported "zigcoro" but is that normal that I have to import "libxev" aswell ? Shouldnt it be imported when I import "zigcoro" ?

Also:

Thank you and have a nice day :smile:

rsepassi commented 2 months ago

Hi, the project is stable and I keep it working as Zig and xev are updated, but I don't expect further changes.

To get a sense for how to use the library with xev, take a look at https://github.com/rsepassi/zigcoro/blob/main/src/test_aio.zig

It imports zigcoro and xev just as you would in your own code.

Pismice commented 2 months ago

Yes I realized how to do it, its just that your build.zig.zon only imports libxev but its beceause you have the zigcoro code around you (which i dont in my project).

And is there a discord ? Where should I ask for help if I am having problems using the library ?

rsepassi commented 2 months ago

Ok, glad it’s working. There isn’t. You can ask questions on GitHub or maybe some folks could help out in the main Zig discord.

On Wed, Apr 24, 2024 at 12:15 AM Pismice @.***> wrote:

Yes I realized how to do it, its just that your build.zig.zon only imports libxev but its beceause you have the zigcoro code around you (which i dont in my project).

And is there a discord ? Where should I ask for help if I am having problems using the library ?

— Reply to this email directly, view it on GitHub https://github.com/rsepassi/zigcoro/issues/19#issuecomment-2074238991, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIQMW2ZXLADP5247AWY3HTY65LYBAVCNFSM6AAAAABGURV7WGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZUGIZTQOJZGE . You are receiving this because you commented.Message ID: @.***>