Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

can't compile esp-idf-sys  #5

@kjedamzik

Description

@kjedamzik

Hey, does anyone have an idea why this is happening?

$ cargo build
warning: unused config key `unstable.configurable-env` in `/Users/kofi/kofi/rust-esp32-std-hello/.cargo/config.toml`
   Compiling esp-idf-sys v0.13.0 (https://github.com/ivmarkov/esp-idf-sys.git#02cccaed)
error[E0308]: mismatched types
  --> /Users/kofi/.cargo/git/checkouts/esp-idf-sys-f28bf5c6d31e9e33/02cccae/src/alloc.rs:28:59
   |
28 |         heap_caps_realloc(ptr as *mut _, new_size as u32, MALLOC_CAP_8BIT as i32) as *mut _
   |                                                           ^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `i32`
   |
help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit
   |
28 |         heap_caps_realloc(ptr as *mut _, new_size as u32, (MALLOC_CAP_8BIT as i32).try_into().unwrap()) as *mut _
   |                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `esp-idf-sys`

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions