meh / rust-tun

TUN device creation and handling.
343 stars 136 forks source link

Support iOS and Android #21

Closed eycorsican closed 3 years ago

eycorsican commented 4 years ago

I made some changes to this crate and it works on iOS: https://github.com/eycorsican/rust-tun/commit/b5cdf6133bcf7465c7ffa0aabfe5d7ac54f73728

The idea is that on iOS and Android, we can create and configure a TUN interface in native code, then pass the file descriptor to rust-tun to create an async interface for reading/writing.

meh commented 4 years ago

Could you make a pull request so I can review it?

Also could you run cargo fmt in a separate commit so it's easier to review please?

eycorsican commented 4 years ago

I can make a PR for iOS, would you mind a PR with rustfmt apply to the whole project?

meh commented 4 years ago

You can put them both in the same PR as long as they're separate commits :panda_face: