Closed hshh closed 1 year ago
tokio-tun
which Phantun uses lacks BSD support for now. This is really not high on my priority list to contribute this to tokio-tun
as I am not a BSD user. But if anyone could contribute this Phantun should work with FreeBSD easily.
Tested git version. Here is error log.
Compiling tokio-util v0.7.4 error[E0433]: failed to resolve: could not find
linux
in the crate root --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/tun.rs:1:12 | 1 | use crate::linux::interface::Interface; | ^^^^^ could not findlinux
in the crate rooterror[E0433]: failed to resolve: could not find
linux
in the crate root --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/tun.rs:2:12 | 2 | use crate::linux::io::TunIo; | ^^^^^ could not findlinux
in the crate rooterror[E0433]: failed to resolve: could not find
linux
in the crate root --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/tun.rs:3:12 | 3 | use crate::linux::params::Params; | ^^^^^ could not findlinux
in the crate rootlibc::IFF_NO_PI
,libc::IFF_TAP
,libc::IFF_TUN
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/builder.rs:7:12IFF_TUN
in the rootIFF_TAP
in the rootIFF_NO_PI
in the root~~~~~ help: a similar name exists in the module~~help: a similar name exists in the module | 7 | use libc::{IFF_NO_PI, IFF_TAP, IFF_UP}; |
~~Tun
in this scope --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/builder.rs:166:38Tun
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/builder.rs:167:9error[E0412]: cannot find type
Params
in this scope --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/builder.rs:179:35 | 179 | impl<'a> From<TunBuilder<'a>> for Params { | ^^^^^^ not found in this scopeerror[E0599]: no method named
files
found for structArc<_>
in the current scope --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/tun.rs:110:26 | 110 | for &fd in iface.files() { | ^^^^^ method not found inArc<_>
error[E0599]: no method named
clone
found for structArc<_>
in the current scope --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-tun-0.7.0/src/tun.rs:112:30 | 112 | iface: iface.clone(), | ^^^^^ method not found inArc<_>
Some errors have detailed explanations: E0412, E0432, E0433, E0599. For more information about an error, try
rustc --explain E0412
. error: could not compiletokio-tun
due to 9 previous errors warning: build failed, waiting for other jobs to finish...