cat-in-136 / ws2812-esp32-rmt-driver

WS2812 driver using ESP32 RMT for Rust
MIT License
40 stars 22 forks source link

v0.7 can't build alongside esp-idf-svc due to esp-idf-hal limitation #42

Closed y34hbuddy closed 3 months ago

y34hbuddy commented 7 months ago

This crate currently can't be built alongside esp-idf-svc, due to this crate's dependency limitation on esp-idf-hal = "^0.42". esp-idf-svc requires esp-idf-hal = "^0.43"

error: failed to select a version for esp-idf-hal.
    ... required by package esp-idf-svc v0.48.1
    ... which satisfies dependency esp-idf-svc = "^0.48.1" of package [redacted] ([redacted])
versions that meet the requirements ^0.43 are: 0.43.1, 0.43.0

the package esp-idf-hal links to the native library esp_idf_hal, but it conflicts with a previous package which links to esp_idf_hal as well:
package esp-idf-hal v0.42.5
    ... which satisfies dependency esp-idf-hal = "^0.42" of package ws2812-esp32-rmt-driver v0.7.1
    ... which satisfies dependency ws2812-esp32-rmt-driver = "^0.7.1" of package [redacted] v0.1.0 ([redacted])
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links = "esp_idf_hal" value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for esp-idf-hal which could resolve this conflict