esp-rs / esp-idf-svc

Type-Safe Rust Wrappers for various ESP-IDF services (WiFi, Network, Httpd, Logging, etc.)
https://docs.esp-rs.org/esp-idf-svc/
Apache License 2.0
330 stars 183 forks source link

Fix for ESP-IDF 5.3 #485

Closed jothan closed 2 months ago

jothan commented 2 months ago

Fix for this error:

   Compiling esp-idf-svc v0.49.1 (esp-idf-svc)
error[E0560]: struct `esp_idf_hal::sys::eth_esp32_emac_config_t` has no field named `smi_mdc_gpio_num`
   --> esp-idf-svc/src/eth.rs:445:13
    |
445 |             smi_mdc_gpio_num: mdc,
    |             ^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::eth_esp32_emac_config_t` does not have this field
    |
    = note: available fields are: `__bindgen_anon_1`, `clock_config`, `dma_burst_len`, `intr_priority`

error[E0560]: struct `esp_idf_hal::sys::eth_esp32_emac_config_t` has no field named `smi_mdio_gpio_num`
   --> esp-idf-svc/src/eth.rs:446:13
    |
446 |             smi_mdio_gpio_num: mdio,
    |             ^^^^^^^^^^^^^^^^^ `esp_idf_hal::sys::eth_esp32_emac_config_t` does not have this field
    |
    = note: available fields are: `__bindgen_anon_1`, `clock_config`, `dma_burst_len`, `intr_priority`

For more information about this error, try `rustc --explain E0560`.
error: could not compile `esp-idf-svc` (lib) due to 2 previous errors

It seems like a simple case of union / bindgen noise.