Commit graph

8 commits

Author SHA1 Message Date
Jeff Hiner cb2f5ef87a
Separate out sane blocking and async (nonblocking) implementations (#33)
* Default impl should block. Renaming it to avoid API confusion from previous users.

* Can't get rid of libc::read because we have MaybeUninit, but we can clean up the match

* Remove extra include

* Switch everything over to io::Error

* Add initial tokio impl+example

* Move evtest_tokio to normal example

* Add documentation and clarify

* Use a VecDeque (ring buffer) instead of repeatedly popping things off the front of a Vec

* Looks like we are not using thiserror anymore; removing

* Store read buf between calls

* Add nonblocking example with epoll

Co-authored-by: Jeff Hiner <jeff-hiner@users.noreply.github.com>
Co-authored-by: Noah <33094578+coolreader18@users.noreply.github.com>
2021-03-01 10:09:11 -07:00
Greg V e5e7332952 Update nix to 0.9, support FreeBSD
nix 0.9's ioctl macro works with buffers now.
2017-12-01 22:44:06 +03:00
Corey Richardson 60a7523d4b
Fix all the current issues:
Changes in Rust, changes in the evdev ABI, and a bug
2017-04-27 19:42:45 -04:00
Corey Richardson 519a61b937 Fix badge links 2015-07-21 07:39:03 -04:00
Corey Richardson 92ac2d0c6a Note Rust support in README 2015-07-21 05:53:09 -04:00
Corey Richardson c410f1edfb Update README and evtest 2015-07-21 05:33:40 -04:00
Elaine Nemo c5651115fd Underp the readme title 2015-07-18 15:26:23 -04:00
Corey Richardson 4978b2a405 Initial commit 2015-05-29 14:57:46 -04:00