diff --git a/vnt/src/lib.rs b/vnt/src/lib.rs index f085cfc..4de7596 100644 --- a/vnt/src/lib.rs +++ b/vnt/src/lib.rs @@ -4,7 +4,7 @@ pub mod channel; pub mod cipher; pub mod core; mod external_route; -mod handle; +pub mod handle; #[cfg(feature = "ip_proxy")] mod ip_proxy; pub mod nat; @@ -13,11 +13,13 @@ mod port_mapping; mod proto; pub mod protocol; mod tun_tap_device; +pub use tun_tap_device::*; pub mod util; pub use handle::callback::*; pub mod compression; +pub use packet; pub(crate) fn ignore_io_interrupted(e: std::io::Error) -> std::io::Result<()> { if e.kind() == std::io::ErrorKind::Interrupted { diff --git a/vnt/src/util/mod.rs b/vnt/src/util/mod.rs index 9fae45b..0069e2d 100644 --- a/vnt/src/util/mod.rs +++ b/vnt/src/util/mod.rs @@ -1,6 +1,6 @@ mod notify; mod scheduler; -pub use notify::StopManager; +pub use notify::{StopManager, Worker}; pub use scheduler::Scheduler; mod counter;