Sounds like there is still some work to do here, then
I doubt most routers have 200MB flash.
@amanjeev I believe this can be closed now?
Christopher Grant (d45e59d3) at 17 Sep 09:04
v0.6
Christopher Grant (912dfa28) at 17 Sep 08:02
socket: eliminate some duplication
... and 1 more commit
Christopher Grant (a6638386) at 28 Feb 07:07
v0.5.1
Christopher Grant (6644317d) at 28 Feb 07:07
v0.5.0
Christopher Grant (cd7a928f) at 27 Feb 16:38
fix tests
Christopher Grant (02932ccc) at 10 Nov 16:44
Upgrade dependencies, fix clippy errors
... and 1 more commit
Christopher Grant (fabc7925) at 10 Nov 16:12
https://git.irde.st/cagrant/irdest/-/tree/ratmand-minified
The minified
profile achieves a significant reduction in binary size. (18MB to 7.8MB)
I tried removing a few features, but that only got it down to 5.6MB, which is still not enough IMO. It would be nice to fit it on a router, maybe with some compression. https://openwrt.org/toh/recommended_routers
Packing the 5.6MB binary with upx results in a compression ratio of 22.5%, bringing the binary size down to 1.3MB.
For further work, see the following resources: https://github.com/johnthagen/min-sized-rust https://dl.acm.org/doi/pdf/10.1145/3519941.3535075
Christopher Grant (f5b35bba) at 18 Oct 00:11
Added minified release profile
... and 241 more commits
I think this is due in part to a race condition. I worked around this problem in netmod-datalink (which uses identical framing atm) by ignoring any data packets that were received before the peer was registered via announce.
Christopher Grant (534d1c08) at 15 Oct 13:17
Christopher Grant (08732bcd) at 05 Oct 18:54
netmod/lan: pnet 0.28 -> pnet_datalink 0.31
... and 3 more commits