Embedded Rust is so good

337 points hyahoos_32

I am starting to learn embedded programming in Rust and I have to say that I don't think I would be able to make it so far without the help of the features of the language.

First of all, the community surrounding this is great, I saw the embedded-hal and it seems like such a good idea to have a framework to make agnostic drivers, and then I saw svd rust and I thought everything is just so good.

Now I am not God, so I make mistakes while programming the embedded devices, especially when I was trying to configure I2c communication with the LSM303agr sensor. I know some of the hal is a bit unstable and some documentation for stm32f3xx-hal is a bit out of date, but the compiler was so helpful telling me to do this instead of that, and it worked. I am so amazed.

I've done C/C++ before this and I absolutely cannot imagine the compilers at C/C++ being this helpful. I know I was always so frustrated when I first staretd programming in C. This time I am so satisfied, I feel so grateful for the existence of Rust and its awesome embedded-programming community!