yaa110 / tokio-tun

Asynchronous allocation of TUN/TAP devices in Rust using tokio
https://crates.io/crates/tokio-tun
Apache License 2.0
80 stars 29 forks source link

Roadmap of supporting macos and windows #1

Open zonyitoo opened 4 years ago

zonyitoo commented 4 years ago

Great project!

What's your plan of supporting macos and windows?

yaa110 commented 4 years ago

Thanks. I appreciate it if someone could open pull requests for those operating systems.

zonyitoo commented 4 years ago

Maybe we can just import libtuntap

yaa110 commented 4 years ago

It might be better to avoid external library dependencies.

zonyitoo commented 3 years ago

It seems that there is no complicated work to be done to make this project compatible with macOS. The APIs are almost the same with Linux.

For Windows, we could use wintun, which already provided similar interfaces as *NIX platforms.

BTW, could you generates FFI definitions prior to release this library? Because bindgen requires uses to install libclang, which is unnecessary.