Skip to content

Commit c3a80b4

Browse files
committed
Rustier kqueue API
* Prefer methods instead of functions. * Create a newtype for a kqueue. * Document everything. * Deprecate EVFILT_SENDFILE, because it was never fully implemented upstream. * Add support to the libc_enum! macro to be able to deprecate variants.
1 parent 9f3aafc commit c3a80b4

File tree

4 files changed

+187
-32
lines changed

4 files changed

+187
-32
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1919
- With I/O-safe type applied in `pty::OpenptyResult` and `pty::ForkptyResult`,
2020
users no longer need to manually close the file descriptors in these types.
2121
([#1921](https://github.com/nix-rust/nix/pull/1921))
22+
- `sys::event::{kevent, kevent_ts}` are deprecated in favor of
23+
`sys::kevent::Kqueue::kevent`, and `sys::event::kqueue` is deprecated in
24+
favor of `sys::kevent::Kqueue::new`.
25+
([#TODO](https://github.com/nix-rust/nix/pull/TODO))
2226

2327
### Fixed
2428
### Removed

src/macros.rs

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ macro_rules! libc_enum {
132132
impl ::std::convert::TryFrom<$repr> for $BitFlags {
133133
type Error = $crate::Error;
134134
#[allow(unused_doc_comments)]
135+
#[allow(deprecated)]
136+
#[allow(unused_attributes)]
135137
fn try_from(x: $repr) -> $crate::Result<Self> {
136138
match x {
137139
$($try_froms)*

0 commit comments

Comments
 (0)