Taiki Endo
1e4467b1be
Test more Windows targets on CI
...
- Test x86_64 gnu, i686 msvc, i686 gnu on Windows host
- Test patched async-io with Wine
2023-03-04 15:35:17 +09:00
Taiki Endo
d443196f64
Use image_family for FreeBSD image in Cirrus CI
2023-02-06 22:02:43 +09:00
John Nunley
a5aae98805
feat: Expose other kqueue filters ( #83 )
...
* feat: Expose other kqueue filters
* Fix netbsd/openbsd compilation
* Build MSRV for FreeBsd/OpenBsd in CI
* Only run MSRV BSD builds on Linux
* Change API a little + fix netbsd timer
* Add inlines + move PollerSealed
* rustfmt
* Make filter fields public
* Fix examples
2023-02-03 11:14:33 -08:00
dependabot[bot]
914aa48d67
Update windows-sys requirement from 0.42 to 0.45
...
Updates the requirements on [windows-sys](https://github.com/microsoft/windows-rs ) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases )
- [Commits](https://github.com/microsoft/windows-rs/compare/0.42.0...0.45.0 )
---
updated-dependencies:
- dependency-name: windows-sys
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-23 23:41:01 +09:00
Taiki Endo
900b00c061
Test NetBSD/OpenBSD/Dragonfly BSD with vmactions
2023-01-23 00:15:00 +09:00
Taiki Endo
ff86c54dfd
Minimize GITHUB_TOKEN permissions
...
Refs: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token
2023-01-21 20:38:57 +09:00
Taiki Endo
9b67232ea4
Test FreeBSD with Cirrus CI
2023-01-21 20:38:57 +09:00
Taiki Endo
3bc6310121
Set CARGO_NET_GIT_FETCH_WITH_CLI=true in CI
2023-01-21 20:38:57 +09:00
John Nunley
27f23a9384
m: Use EVFILT_USER instead of a self-pipe on kqueue where supported ( #73 )
...
* Use EVFILT_USER instead of a self-pipe
* Fix kqueue flags
2023-01-12 21:35:49 -08:00
John Nunley
729b5ee071
Use port_send for event ports ( #74 )
2023-01-12 21:35:28 -08:00
John Nunley
dc4c5b4ec0
bugfix: Prevent large timeouts from causing panics ( #71 )
2023-01-07 19:35:46 -08:00
John Nunley
181acc67d0
Add level and edge triggered modes to the poller ( #59 )
...
* Add level and edge triggered modes to the poller
* Refractor error handling
* Add tests for new modes
2022-12-30 14:43:47 -08:00
Taiki Endo
bc56d1fb38
Test the backend that uses poll on CI ( #63 )
2022-12-29 16:01:25 +09:00
Taiki Endo
1a3f61da89
Enable dependabot update for Rust
2022-12-28 12:24:56 +09:00
Taiki Endo
5e9bedbae8
Sort target_os cfg to match docs
2022-12-28 12:24:56 +09:00
Taiki Endo
14e1488537
Clean up CI config
2022-12-28 12:24:56 +09:00
Taiki Endo
341ca612b8
Update taiki-e/install-action to v2
2022-12-28 12:24:56 +09:00
John Nunley
97e6ecd0d0
Support tvOS and watchOS ( #60 )
2022-12-19 19:54:45 -08:00
Taiki Endo
f0afd7788e
Release 2.5.2 ( #58 )
2022-12-13 12:26:59 +09:00
Alan Somers
cebf394ca6
Future-proof the kevent API ( #56 )
...
In FreeBSD 12, kevent grew some extra fields. libc currently implements
a FreeBSD 11 ABI, but that will change some day. Tweak the kevent
initialization so it will compile with either version.
2022-12-13 12:16:19 +09:00
Wesley Wiser
5343302970
Update use of libc::timespec to prepare for future libc version ( #55 )
...
In a future release of the `libc` crate, `libc::timespec` will contain
private padding fields on `*-linux-musl` targets and so the struct will
no longer be able to be created using the literal initialization syntax.
Update `TS_ZERO` to create a value by initializing an array of the
correct size to `0` and then transmuting to `libc::timespec`. Update
struct literal use of `libc::timespec` to initialize to `TS_ZERO` and
then manually update the appropriate fields. Also updates a raw syscall
to use the libc function instead as on musl 1.2, it correctly handles
`libc::timespec` values which, in musl 1.2, are always 16 bytes in
length regardless of platform.
2022-12-03 23:04:37 +09:00
John Nunley
00e7eefc4d
Add error message for Wepoll ( #54 )
...
* Add error message for Wepoll
* Avoid unsupported error kind where it is not supported
2022-11-30 20:26:28 -08:00
Taiki Endo
0b45549097
Test x86_64-pc-windows-gnu with Wine on CI ( #53 )
2022-11-30 23:21:01 +09:00
Taiki Endo
1d54c93f9d
Release 2.5.1
2022-11-29 22:21:43 +09:00
Taiki Endo
6f459f89a9
Use std::os::raw::c_int instead of std::ffi::c_int
2022-11-29 22:21:43 +09:00
Taiki Endo
e5fe94732c
Release 2.5.0
2022-11-27 16:22:51 +09:00
Taiki Endo
76ee52a68c
Remove msrv field from .clippy.toml
...
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-11-27 16:22:51 +09:00
John Nunley
8982599ddf
Port to windows-sys ( #47 )
2022-11-26 20:50:12 -08:00
Taiki Endo
ca52490c9d
Release 2.4.0
2022-10-24 00:26:11 +09:00
Taiki Endo
bf6cbcc31c
Fix build error on solarish
2022-10-24 00:13:27 +09:00
Taiki Endo
de312d15b6
Reduce size of sys::Events
2022-08-21 23:40:10 +09:00
Taiki Endo
e0daa5b327
Bump MSRV to 1.47
2022-08-21 23:40:10 +09:00
Taiki Endo
d32e79b5dd
Release 2.3.0
2022-08-21 20:14:55 +09:00
Taiki Endo
b9cce6645c
Apply doc(cfg(...)) on platform-specific APIs
2022-08-21 19:47:00 +09:00
John Nunley
323473ec1a
Expose raw handles for the `Poller` ( #39 )
...
* expose raw handles
* add comment explaining no_*
2022-08-18 09:52:28 -07:00
Taiki Endo
61c2179a38
Apply clippy to all targets
2022-07-17 21:22:06 +09:00
Taiki Endo
989c515fa2
Pin cross to 0.2.1
2022-07-03 20:57:45 +09:00
Taiki Endo
95c8207ac1
Update CI config
2022-07-03 20:57:32 +09:00
Taiki Endo
6b219eb0d7
Update actions/checkout action to v3
2022-05-01 14:46:00 +09:00
Taiki Endo
055e2711ae
Ignore clippy::useless_conversion and clippy::unnecessary_cast lints
2022-01-09 02:00:40 +09:00
Taiki Endo
a12be08c97
Fix MSRV
2022-01-09 01:58:56 +09:00
Taiki Endo
191e91655e
Create GitHub release automatically
2022-01-09 01:50:53 +09:00
Taiki Endo
dec94cb423
Clean up CI config
2022-01-09 01:50:42 +09:00
Taiki Endo
89ce9bafaa
Bump to v2.2.0
2021-11-10 19:31:42 +09:00
Taiki Endo
4ac15ff339
Merge pull request #26 from Kestrer/master
...
Support VxWorks, Fuchsia and other Unix systems by using poll
2021-09-11 18:09:28 +09:00
Kestrer
e902924621
Add Fuchsia target before crosscompiling in CI
2021-09-04 19:52:59 +01:00
Kestrer
597b6aed86
Add concurrent modification tests
2021-09-04 19:19:02 +01:00
Kestrer
bbce346140
Add Fuchsia to cross workflow on CI
2021-09-04 18:01:56 +01:00
Kestrer
1930801c40
Document `poll` support in README
2021-09-04 18:00:25 +01:00
Kestrer
ee13911717
Remove `extra_traits` libc feature
2021-09-04 17:58:56 +01:00