Closed S3j5b0 closed 2 years ago
Is this with the latest 1.59 compiler?
release/4.4
branch in .cargo/config.toml
inside the demo crate and then building with cargo build --features native
.htanks a lot! will have a look at it
I have the same issue, I checked, my rustc-version is rustc 1.59.0-dev
.
For now, a workaround would be to use the native build as described above.
Hi, I tried the fix as described, it build for a while, and then this happens:
$ cargo build --features native
Compiling esp-idf-sys v0.30.6
Compiling esp-idf-hal v0.33.1
Compiling esp-idf-svc v0.37.2
Compiling rust-esp32-std-demo v0.23.0 (/home/ask/Git/rust-esp32-std-demo)
error[E0412]: cannot find type `TcpStream` in this scope
--> src/main.rs:690:47
|
690 | async fn echo(stream: smol::Async<TcpStream>) -> smol::io::Result<()> {
| ^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
673 | use crate::TcpStream;
|
673 | use std::net::TcpStream;
|
error[E0412]: cannot find type `TcpListener` in this scope
--> src/main.rs:696:42
|
696 | let listener = smol::Async::<TcpListener>::bind(([0, 0, 0, 0], 8081))?;
| ^^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
673 | use crate::TcpListener;
|
673 | use std::net::TcpListener;
|
error[E0433]: failed to resolve: use of undeclared crate or module `thread`
--> src/main.rs:717:17
|
717 | thread::Builder::new().stack_size(4096).spawn(move || {
| ^^^^^^^ not found in `thread`
|
help: consider importing one of these items
|
673 | use crate::thread::Builder;
|
673 | use std::thread::Builder;
|
Some errors have detailed explanations: E0412, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `rust-esp32-std-demo` due to 3 previous errors
I have no clue what this is
I also stumbled over this while fixing #68 and fixed it by importing the necessary crates into the mod. See: https://github.com/ivmarkov/rust-esp32-std-demo/commit/3bafe22f8e6bf834c70de690cf6dc90863fce727#diff-42cb6807ad74b3e201c5a7ca98b911c5fa08380e942be6e4ac5807f8377f87fcR673
Are you using the latest code?
It is just a compilation error (missing imports). Might be related to what @mike1703 is mentioning even though "worked for a while" sounds as if you've also made some code changes yourself and it no longer compiles?
Perhaps just fix them damn imports, as the compiler itself suggests? :)
Ah yes I pulled again and now it works - with the fixes a described above. Thanks a lot for the help, you guys are super helpfull
Is this with the latest 1.59 compiler?
- If yes, I need to fix something, thanks for reporting. In the meantime you can work-around the issue by enabling the
release/4.4
branch in.cargo/config.toml
inside the demo crate and then building withcargo build --features native
.- If not, please let me know what compiler version you are using.
Hello, I just wanted to ask how do I do this? I'm not that experienced with the config.toml but wanted to start on the ESP32 with Rust! Thanks for the help!
Hi, I'm running ubuntu, and i've tried to build this project.
ldproxy is installed, the env variables mentioned should be set, and
rustup default esp
is run.When I try to build, I end up failing like this:
Do you have any idea why this might happen? it seems like I have the crate, but maybe the version is wrong or something?