Could not compile esp-wifi (lib)
#346
-
|
Hello, I encountered some problems during the compilation process and I don’t know how to solve this,and I haven’t found any related issues. My English is not good,forgive me.
My operation process: first I set up environment follow rust-on-esp-book
add to 'cargo.toml'
edit Then run "cargo build" and an error will be reported. I'm a newbie in embedded rust,I don't know how to solve it, thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, @liyang8246! You are mixing We have support for both directions. For In your case, you've created an If you are a beginner in embedded rust, starting with repository examples might be a better way. wokwi might be another source of examples (both |
Beta Was this translation helpful? Give feedback.
Hi, @liyang8246! You are mixing
stdcrates withno_stdones.We have support for both directions. For
stdwe have crates with names likeesp-idf-XXX(theidfin the middle is important here). Forno_stdit'sesp-XXX. For more information, please look at Overview of Development Approaches.In your case, you've created an
stdproject via esp-idf-template and you are trying to use it together withesp-wifi, which isno_std. If you want to experiment withesp-wifi, use esp-template instead.If you are a beginner in embedded rust, starting with repository examples might be a better way.
For
no_stdyou could try these examples esp-wifi or esp-hal.For
stdesp-idf-hal or the all-in-one beast rus…