meh / rust-tun

TUN device creation and handling.
340 stars 133 forks source link

"async" feature deps enables for "android" #47

Closed zonyitoo closed 2 years ago

zonyitoo commented 2 years ago

ref shadowsocks/shadowsocks-rust#856

https://github.com/meh/rust-tun/blob/b60d4c2ce9aa0b7518fc259c914a0459a5320888/src/lib.rs#L30-L38

The async mod could be enabled for "android", but the dependencies' cfg missed target_os = "android"

Voronar commented 2 years ago

Packer protocol section also needs android support (maybe just add target_os = "android" together with target_os = "linux"?). https://github.com/meh/rust-tun/blob/b60d4c2ce9aa0b7518fc259c914a0459a5320888/src/async/codec.rs#L29-L41

zonyitoo commented 2 years ago

@meh Hello meh, this PR is ready for review.