Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump all deps except smoltcp #426

Merged
merged 4 commits into from Mar 22, 2023
Merged

bump all deps except smoltcp #426

merged 4 commits into from Mar 22, 2023

Conversation

olback
Copy link
Member

@olback olback commented Mar 13, 2023

cargo outdated
Name     Project  Compat  Latest  Kind    Platform
----     -------  ------  ------  ----    --------
smoltcp  0.8.2    ---     0.9.1   Normal  ---
cargo duplicates
Package        Versions
-------        --------
bare-metal     1.0.0   0.2.5
bitflags       2.0.0   1.3.2
nb             1.1.0   0.1.3
rtt-target     0.4.0   0.3.1
rustc_version  0.4.0   0.2.3
semver         1.0.17  0.9.0
spin           0.9.6   0.5.2

bare-metal 1.0.0:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => bare-metal 1.0.0
- Because of stm32h7xx-hal 0.13.1 => stm32h7 0.15.1 => bare-metal 1.0.0
- Because of stm32h7xx-hal 0.13.1 => bare-metal 1.0.0
bare-metal 0.2.5:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => panic-itm 0.4.2 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => panic-rtt-target 0.1.2 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => stm32h7 0.15.1 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => cortex-m 0.7.7 => bare-metal 0.2.5
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => cortex-m 0.7.7 => bare-metal 0.2.5

bitflags 2.0.0:
- Because of stm32h7xx-hal 0.13.1 => bitflags 2.0.0
bitflags 1.3.2:
- Because of stm32h7xx-hal 0.13.1 => defmt 0.3.2 => bitflags 1.3.2
- Because of stm32h7xx-hal 0.13.1 => fdcan 0.1.2 => bitflags 1.3.2
- Because of stm32h7xx-hal 0.13.1 => smoltcp 0.8.2 => bitflags 1.3.2

nb 1.1.0:
- Because of stm32h7xx-hal 0.13.1 => fdcan 0.1.2 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => panic-itm 0.4.2 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => panic-rtt-target 0.1.2 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => stm32h7 0.15.1 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => embedded-sdmmc 0.4.0 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => stm32-fmc 0.3.0 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => usbd-serial 0.1.1 => embedded-hal 0.2.7 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => usbd-serial 0.1.1 => nb 0.1.3 => nb 1.1.0
- Because of stm32h7xx-hal 0.13.1 => nb 1.1.0
nb 0.1.3:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => panic-itm 0.4.2 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => panic-rtt-target 0.1.2 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => stm32h7 0.15.1 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => cortex-m 0.7.7 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => embedded-sdmmc 0.4.0 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => stm32-fmc 0.3.0 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => usbd-serial 0.1.1 => embedded-hal 0.2.7 => nb 0.1.3
- Because of stm32h7xx-hal 0.13.1 => usbd-serial 0.1.1 => nb 0.1.3

rtt-target 0.4.0:
- Because of stm32h7xx-hal 0.13.1 => rtt-target 0.4.0
rtt-target 0.3.1:
- Because of stm32h7xx-hal 0.13.1 => panic-rtt-target 0.1.2 => rtt-target 0.3.1

rustc_version 0.4.0:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => heapless 0.7.16 => rustc_version 0.4.0
rustc_version 0.2.3:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => panic-itm 0.4.2 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => panic-rtt-target 0.1.2 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => stm32h7 0.15.1 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3

semver 1.0.17:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => heapless 0.7.16 => rustc_version 0.4.0 => semver 1.0.17
semver 0.9.0:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-log 0.8.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m-semihosting 0.5.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => panic-itm 0.4.2 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => panic-rtt-target 0.1.2 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => panic-semihosting 0.6.0 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => stm32h7 0.15.1 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0
- Because of stm32h7xx-hal 0.13.1 => synopsys-usb-otg 0.3.2 => cortex-m 0.7.7 => bare-metal 0.2.5 => rustc_version 0.2.3 => semver 0.9.0

spin 0.9.6:
- Because of stm32h7xx-hal 0.13.1 => cortex-m-rtic 1.1.4 => heapless 0.7.16 => spin 0.9.6
spin 0.5.2:
- Because of stm32h7xx-hal 0.13.1 => lazy_static 1.4.0 => spin 0.5.2

@olback olback marked this pull request as draft March 13, 2023 21:53
@olback
Copy link
Member Author

olback commented Mar 13, 2023

While I'm at it, we should probably update the CI script as well:

Warning: The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Edit: The warning comes from actions-rs/toolchain. That whole org has not received any updates for about 3 years. Could this be an alternative?

@@ -30,7 +30,7 @@ rustdoc-args = ["--cfg", "docsrs"]
fugit = "0.3.5"
embedded-hal = { version = "0.2.6", features = ["unproven"] }
embedded-dma = "0.2.0"
cortex-m = "^0.7.4"
cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the feature only be enabled on the single core variants?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be in over my head here...

From what I've managed to figure out is:

  • cortex_m::interrupt::free is unsound(?)
  • critical_section::with is not unsound but needs to be implemented by either this crate or use the "default" provided by the critical-section-single-core feature in cortex-m

rust-embedded/cortex-m#448

https://github.com/rust-embedded/cortex-m/blob/master/CHANGELOG.md states that

So to answer your question: Probably, in the future when this crate supports multiple cores. As long as we don't provide any way to run code on multiple cores in this crate, using the feature critical-section-single-core should be fine(?).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for investigating this @olback ! I'm ok with this solution for now since there's no explicit support for multiple cores yet. It's even possible a HAL isn't actually the right place to implement multicore support, but I think that is still uncertain.

@olback olback marked this pull request as ready for review March 15, 2023 20:42
@olback olback changed the title Draft: bump all deps except smoltcp bump all deps except smoltcp Mar 15, 2023
Copy link
Member

@richardeoin richardeoin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me 👍 It looks like this actually gets us some extra duplicates (for example bitflags v2.0, whilst our dependencies are still using v1.x) but that they will presumably upgrade too in future.

@richardeoin
Copy link
Member

bors r+

@bors bors bot merged commit 41f30d6 into stm32-rs:master Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants