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

cannot find value esp_crt_bundle_attach in crate esp_idf_sys #119

Closed
cxgreat2014 opened this issue Nov 10, 2022 · 2 comments
Closed

cannot find value esp_crt_bundle_attach in crate esp_idf_sys #119

cxgreat2014 opened this issue Nov 10, 2022 · 2 comments

Comments

@cxgreat2014
Copy link

cxgreat2014 commented Nov 10, 2022

PS D:\intro\http-client> cp .\examples\https_client.rs .\src\main.rs       
PS D:\intro\http-client> cargo espflash --release --monitor COM5    
New version of cargo-espflash is available: v2.0.0-rc.1

Serial port: COM5
Connecting...

   Compiling http-client v0.1.0 (D:\intro\http-client)
error: could not compile `http-client` due to 2 previous errors 
error[E0425]: cannot find value `esp_crt_bundle_attach` in crate `esp_idf_sys`
  --> src\main.rs:40:46
   |
40 |         crt_bundle_attach: Some(esp_idf_sys::esp_crt_bundle_attach),
   |                                              ^^^^^^^^^^^^^^^^^^^^^ not found in `esp_idf_sys`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
PS D:\intro\http-client> 

@melastmohican
Copy link

Libraries got outdated pretty quickly, I guess esp-rs is still WIP. I was able to get through the intro part by bumping some libraries to the latest version:

esp-idf-sys = { version = "0.31.11", features = ["binstart"] }
esp-idf-svc = { version="0.42.5", features = ["experimental", "alloc"] }

@SergioGasquez
Copy link
Member

This was solved by updating the sdkconfigs.default and a cargo clean, see #142 for more information. Now, updating sdkconfigs.default is not required anymore, and it should work out of the box!

I'll close the issue, if it still persists, feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants