dndx / phantun

Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs.
Apache License 2.0
1.71k stars 137 forks source link

add some release options to optimize the size of the binary #165

Open vincascm opened 2 months ago

vincascm commented 2 months ago

When using an OpenWrt router, the size of the binary is a concern. Based on suggestions from https://github.com/johnthagen/min-sized-rust, I added some compile-time options to optimize the binary size. The optimized binary has been successfully run on a real OpenWrt device, and everything is working fine.