Rustup settings on windows for esp32 target only? #313
-
I use a windows laptop for casual esp32 development. Begrudgingly, I use micropython and Thonny IDE only because I haven't figured out a good rust setup, or even a reliable mpy on vscode flow. I'm ready to try rust again this year. I'm mostly new to embedded and I'm sure it's apparent that I'm fuzzy on the details. espup seems to require rustup installed to install. rustup installation wants gcc or msvc tooling and asks for a host triple, which is the target architecture of code builds, right? So esp32 isn't a top-tier yet, can I still exclusively pick that? Or we have to pick a top tier and add esp32 only as secondary? I don't want to install toolchain, etc tools that aren't necessary and which might confuse me or my system later. I don't want to complicate my setup with WSL or docker containers or I fear I'll spend the time futzing with that instead of the esp32 - when it doesn't seem that it would be necessary. I just haven't found the right and updated guide. Do I really need gcc/msvc or does the xtensa and esp32 have enough tools to keep rust updated, build for esp32, write to the chip and debug? What host-triple is the best pick for only targeting esp32 series chips? What default toolchain is the best choice for this? Otherwise I'm expecting to use vscode with rs-probe and serial-monitor plugins and the rust language service and following recent guides on, say https://apollolabsblog.hashnode.dev but a lot of these resources (I think?) assume a linux workstation. Thanks! P.S. since everyone seems to be on laptops these days, and most developers aren't on apple hardware, and non-apple laptop hardware has notoriously poor linux driver coverage, why are rust-on-windows developers seemingly so uncommon? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi!
I would suggest taking a look at https://esp-rs.github.io/book/tooling/visual-studio-code.html
Basically,
There are a few options:
I think using Rust on Windows is perfectly fine, even some of our teams members use it for work! |
Beta Was this translation helpful? Give feedback.
Hi!
I would suggest taking a look at https://esp-rs.github.io/book/tooling/visual-studio-code.html