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

Update Xtensa Rust version #46

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Conversation

SergioGasquez
Copy link
Contributor

  • Remove rustfmt component from no_std
  • Compile std projects
  • Update Xtensa Rust version for both builders

#RUN WOKWI_MCU=esp32-s2 ./compile.sh
#RUN WOKWI_MCU=esp32-s3 ./compile.sh
# We remove the target directory to reduce the image size.
RUN WOKWI_MCU=esp32 ./compile.sh && rm -rf rust-project-esp32/target
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, even when removing the target directory, we still have an issue with the image size - the .espressif directory gets really big. So let's keep these commented out for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, makes sense! It should now be updated!

@urish urish merged commit d5de957 into wokwi:main Jul 24, 2023
@SergioGasquez SergioGasquez deleted the feature/xtensa-version branch July 24, 2023 13:07
@SergioGasquez SergioGasquez restored the feature/xtensa-version branch July 24, 2023 13:07
@SergioGasquez SergioGasquez deleted the feature/xtensa-version branch July 24, 2023 13:07
@urish
Copy link
Contributor

urish commented Jul 24, 2023

Thanks! Unfortunately, both containers fail to build:

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/esp/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.58/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-audit v0.17.6`, intermediate artifacts can be found at `/tmp/cargo-installAhF8ZZ`.

full logs:

@SergioGasquez
Copy link
Contributor Author

Let me take a look at it! I also thought about installing cargo-audit and cargo-generate from GH releases as it way faster, maybe this is a sing to do 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

Successfully merging this pull request may close these issues.

2 participants