Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing 2.1.0 for ESP8266 support #690

Closed
andreas-mausch opened this issue Oct 19, 2024 · 3 comments
Closed

Error when installing 2.1.0 for ESP8266 support #690

andreas-mausch opened this issue Oct 19, 2024 · 3 comments

Comments

@andreas-mausch
Copy link

I try to use cargo espflash to flash my ESP8266.
I understand the recent version does not support the ESP8266, but the 2.x versions should (see here: #519)

My setup:
cargo 1.81.0
rustc 1.81.0

Error:

$ cargo install [email protected] --locked
[...]
   Compiling minimal-lexical v0.2.1
error[E0282]: type annotations needed for `Box<_>`
  --> /home/neonew/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`

Do you have an idea how to fix that? Downgrading my rustc?
Last commit to minimal-lexical was 2 years ago.

I can use the binary version (cargo binstall [email protected]), but still I'd prefer to build it myself.

@jessebraham
Copy link
Member

You should be able to download a pre-compiled binary from the release page, assuming you are running a supported platform:
https://github.com/esp-rs/espflash/releases/tag/v2.1.0

If this is not possible, or does not work for some reason, I would suggest installing an older version of the toolchain and trying to install cargo-espflash using it:

$ rustup toolchain install 1.79.0
$ cargo +1.79.0 install cargo-espflash --locked

Hopefully this will work, I'm just kind of assuming it will; I have not run these commands locally. Hopefully you are successful using either of these methods.

@andreas-mausch
Copy link
Author

I can confirm with Rust 1.79.0 it worked to build from source.
It is a bit sad I can't use the recent version. I have understanding for it, though.

Thank you

@jessebraham
Copy link
Member

It is a bit sad I can't use the recent version. I have understanding for it, though.

Yes I understand. Unfortunately, we have limited resources and given the nearing EOL of the ESP8266 and lack of any similarities to the other chips, we have opted not to support it.

Glad to hear you ultimately got things working.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants