This involved refactoring the crate structure to share code between macOS and Linux. The new methods have not yet been implemented on macOS, but they have todo!() placeholders.
9 lines
209 B
Rust
9 lines
209 B
Rust
#[cfg(target_os = "windows")]
|
|
#[path = "windows/mod.rs"]
|
|
mod imp;
|
|
|
|
#[cfg(any(target_os = "linux", target_vendor = "apple"))]
|
|
#[path = "unix/mod.rs"]
|
|
pub(crate) mod imp;
|
|
|
|
pub use imp::{TunInterface, TunQueue};
|