rp-rs / rp-hal

A Rust Embedded-HAL for the rp series microcontrollers
https://crates.io/crates/rp2040-hal
Apache License 2.0
1.46k stars 237 forks source link

Extract picotool binary info to a separate `rp-binary-info` crate. #830

Closed Dirbaio closed 3 months ago

Dirbaio commented 3 months ago

I'd like to reuse this from Embassy instead of copypasting it, so as discussed in Matrix I'm opening a PR to etract it to a separate crate.

Having a separate crate causes a few changes to the public API. I think they're nice on their own:

thejpster commented 3 months ago

All makes sense to me, but I would like to see a feature to control the static within the new crate - it might be useful to have the crate, but you want to create your own static to put it in a differently named linker section, for example.

thejpster commented 3 months ago

Also, I've re-worded the README in the bit discussing licenseing, so please could you pick up the new wording? See https://github.com/rp-rs/rp-hal/blob/main/README.md#license

thejpster commented 3 months ago

This fell over https://github.com/bluss/arrayvec/issues/273 - re-running with 0.7.6

thejpster commented 3 months ago

This looks great - thank you! I think the top-level module needs to always be included though (and props to udeps for catching that we had a dependency that was never used, which tipped me off)