rust-sysfs-gpio icon indicating copy to clipboard operation
rust-sysfs-gpio copied to clipboard

simple mio example

Open lthiery opened this issue 7 years ago • 7 comments

I was trying to use this library without all the tokio stuff and wished there was a mio example. I shared back this example, although it's not fancy and doesn't take args.

Plus, there is something funny happening where the first event is non-sense...

lthiery avatar Aug 11 '18 00:08 lthiery

Thanks for the example @lthiery; can you run rustfmt on this? I'll give it a once-over as well in more detail.

posborne avatar Aug 11 '18 01:08 posborne

bors try

mathk avatar Feb 22 '19 21:02 mathk

@mathk I haven't made my rounds on this repo to enable bors yet but may be doing some of that tomorrow.

posborne avatar Feb 23 '19 07:02 posborne

This probably needs a rebase to have a better chance with CI.

posborne avatar Feb 23 '19 07:02 posborne

I guess you need to feature gate your test: #[cfg(feature = "mio-evented")]

mathk avatar Feb 25 '19 11:02 mathk

This would need to be adapted to the updated mio version now. bors try

eldruin avatar Sep 24 '21 12:09 eldruin

try

Build failed:

bors[bot] avatar Sep 24 '21 12:09 bors[bot]