<div dir="ltr"><div dir="ltr">On Sat, Feb 29, 2020 at 11:08 PM Jason A. Donenfeld <<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It's likely our rust implementation well be well-suited for what you<br>
have in mind.</blockquote><div><br></div><div>Looking at wireguard-rs, in its current form it makes a lot of use of `alloc` (namely `Vec` and `HashMap`) and `std` features (`fs`, `net`, `sync`).</div><div><br></div><div>Getting it working on a Cortex-M would involve extracting a core protocol implementation which doesn't make use of any of those features as a library/crate which has no dependencies (or only optional dependencies which can be switched off with Cargo features) on `alloc` and `std`.</div></div><div><br></div><div>(as it were, I'm also interested in using wireguard-rs this way in a "heapless" no_std environment)</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Tony Arcieri<br></div></div>