Skip to content

Build failure of esp-rom-sys for esp32 #4545

@SolidTux

Description

@SolidTux

Bug description

Project generated with esp-generate fails with the following error

error[E0599]: no method named `to_ascii_lowercase` found for type `i8` in the current scope
  --> /usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/esp-rom-sys-0.1.3/src/lib.rs:86:31
   |
86 |             let val = (*s1_i).to_ascii_lowercase() as i32 - (*s2_i).to_ascii_lowercase() as i32;
   |                               ^^^^^^^^^^^^^^^^^^ method not found in `i8`

error[E0599]: no method named `to_ascii_lowercase` found for type `i8` in the current scope
  --> /usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/esp-rom-sys-0.1.3/src/lib.rs:86:69
   |
86 |             let val = (*s1_i).to_ascii_lowercase() as i32 - (*s2_i).to_ascii_lowercase() as i32;
   |                                                                     ^^^

To Reproduce

Repository

  • install toolchain with espup
  • generate esp32 project with esp-generate (options don't seem to matter, I tried different ones)
  • run cargo run

Expected behavior

The library compiles

Environment

  • Target device: esp32
  • Crate name and version: esp-rom-sys 0.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage:esp-rom-sysIssue related to the esp-rom-sys package

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions