Skip to content

Commit

Permalink
Provide more types.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 10, 2023
1 parent d6baf6a commit e2fcae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ event = []
fs = []

# Enable `rustix::io_uring::*` (on platforms that support it).
io_uring = ["fs", "net", "linux-raw-sys/io_uring"]
io_uring = ["event", "fs", "net", "linux-raw-sys/io_uring"]

# Enable `rustix::mount::*`.
mount = []
Expand Down
4 changes: 3 additions & 1 deletion src/io_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ use core::ptr::{null_mut, write_bytes};
use linux_raw_sys::net;

// Export types used in io_uring APIs.
pub use crate::fs::{Advice, AtFlags, OFlags, RenameFlags, ResolveFlags, Statx};
pub use crate::event::epoll::Event as EpollEvent;
pub use crate::fs::{Advice, AtFlags, Mode, OFlags, RenameFlags, ResolveFlags, Statx, StatxFlags};
pub use crate::io::ReadWriteFlags;
pub use crate::net::{RecvFlags, SendFlags, SocketFlags};
pub use crate::timespec::Timespec;
pub use linux_raw_sys::general::sigset_t;
Expand Down

0 comments on commit e2fcae9

Please sign in to comment.