Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mio pub #52

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ extern crate io_lifetimes;
extern crate libc;
pub extern crate libudev_sys as ffi;
#[cfg(feature = "mio06")]
extern crate mio06;
pub extern crate mio06 as mio;
#[cfg(feature = "mio07")]
extern crate mio07;
pub extern crate mio07 as mio;
#[cfg(feature = "mio08")]
extern crate mio08;
pub extern crate mio08 as mio;
#[cfg(feature = "mio10")]
extern crate mio10;
pub extern crate mio10 as mio;

pub use device::{Attributes, Device, DeviceType, Properties};
pub use enumerator::{Devices, Enumerator};
Expand Down
10 changes: 3 additions & 7 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ use std::os::unix::io::{AsRawFd, RawFd};

use io_lifetimes::{AsFd, BorrowedFd};
#[cfg(feature = "mio06")]
use mio06::{event::Evented, unix::EventedFd, Poll, PollOpt, Ready, Token};
#[cfg(feature = "mio07")]
use mio07::{event::Source, unix::SourceFd, Interest, Registry, Token};
#[cfg(feature = "mio08")]
use mio08::{event::Source, unix::SourceFd, Interest, Registry, Token};
#[cfg(feature = "mio10")]
use mio10::{event::Source, unix::SourceFd, Interest, Registry, Token};
use mio::{event::Evented, unix::EventedFd, Poll, PollOpt, Ready, Token};
#[cfg(any(feature = "mio07", feature = "mio08", feature = "mio10"))]
use mio::{event::Source, unix::SourceFd, Interest, Registry, Token};

use Udev;
use {ffi, util};
Expand Down
Loading