3 ms·
What's the advantage of Rust here? Like, I thought there was a bunch of more "native" tooling around ESP32 (Arduino?). Do the "neat" parts of Rust carry over i
by djbusby 3y ago
What's the advantage of Rust here? Like, I thought there was a bunch of more "native" tooling around ESP32 (Arduino?). Do the "neat" parts of Rust carry over into work on these small/embedded systems? Or is there a lot of fighting the toolkit because the vendor supports only C-libs?
- boustrophedon 3y agoThe vendor toolkit is in C, so often you'll see for newer boards that Arduino/CircuitPython/etc don't support it yet because they have to build their own wrappers. Rust lets you use bindgen to basically immediately have access to the entire vendor library. Now, in this case I'm using an older esp32 board so something like CircuitPython probably would have been equally fine, but it was nice to be able to share the same buffer type across the server and client. I also just enjoy writing Rust and find it less error-prone than C.