Skip to content

Commit

Permalink
Merge 0rphon/rust-tun
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Nov 30, 2024
2 parents 1cea287 + e7e7a5a commit 3ab586b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#[cfg(unix)]
pub(crate) mod posix;
#[cfg(unix)]
pub use posix::{Reader, Writer};

#[cfg(all(target_os = "linux", not(target_env = "ohos")))]
pub(crate) mod linux;
Expand Down Expand Up @@ -54,7 +56,7 @@ pub use crate::platform::posix::Tun;
#[cfg(target_os = "windows")]
pub(crate) mod windows;
#[cfg(target_os = "windows")]
pub use self::windows::{create, Device, PlatformConfig, Tun};
pub use self::windows::{create, Device, PlatformConfig, Reader, Tun, Writer};

#[cfg(test)]
mod test {
Expand Down
2 changes: 1 addition & 1 deletion src/platform/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::configuration::Configuration;
use crate::error::Result;
#[cfg(feature = "async")]
pub use device::Driver;
pub use device::{Device, Tun};
pub use device::{Device, Reader, Tun, Writer};
use std::ffi::OsString;

/// Windows-only interface configuration.
Expand Down

0 comments on commit 3ab586b

Please sign in to comment.