make tun dependency optional (#142)

* remove log crates
* remove udp/raw of smoltcp
* make tun as optional dependancy, compile for freebsd works
This commit is contained in:
Sijie.Sun authored and GitHub committed 2024-06-11 09:09:32 +08:00
1 parent 8aa57ebc22
commit 34f832bbad
26 files changed
+310 -488

No files matched your search

+3
View File
@@ -1,4 +1,7 @@
pub mod instance;
pub mod listeners;
#[cfg(feature = "tun")]
pub mod tun_codec;
#[cfg(feature = "tun")]
pub mod virtual_nic;