imxrt-rs / imxrt-hal

Rust for NXP i.MX RT
Apache License 2.0
122 stars 29 forks source link

Fix min-versions #162

Closed Finomnis closed 3 weeks ago

Finomnis commented 1 month ago

I'm in the process of setting up a min-versions check in my crate, and it seems a bunch of versions are not specific enough in imxrt-hal.

It seems that ral-registers should be 0.1.2. But I bumped it to 0.1.3 to allow trailing commas in the register accessor macros.

This should be a patch release as this only changes the patch versions of dependencies.

Rationale

When performing a min-versions test, all packages get downgraded to their minimal possible semver version. That shows if all dependencies got upgraded properly in Cargo.toml.

In my case (talking about the CI of the crate imxrt-uart-panic), I need to specify the following dependendencies manually because they are incorrect in the imxrt-hal crate and dependencies:

imxrt-dma = { version = ">= 0.1.1", default-features = false }
ral-registers = { version = ">= 0.1.2", default-features = false }
embedded-hal = { version = "0.2.6", default-features = false }
bitflags = { version = "1.3.1", default-features = false }

This change depends on https://github.com/imxrt-rs/imxrt-ral/pull/47.