smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.63k stars 402 forks source link

Expose a C-API for legacy bare-metal systems #912

Open florianhumblot opened 3 months ago

florianhumblot commented 3 months ago

Is there a way to condense the smoltcp API so that it could be exported as a C library?

With the design goals stated in the readme, this library seems particularly well suited for embedded systems, and considering the mess that is LwIP, I think it could be interesting to use smoltcp (which is extensively tested and fuzzed) as the TCP/IP stack instead of LwIP or other C-based TCP/IP stacks.

Example use case: