I can compile my application (thumbv7em-none-eabihf) directly against heapless and it works fine.
But in this case I have a library (e.g. device driver) that depends on heapless and it won't detect the arm_llsc platform correctly.
As a workaround I have copied build.rs into my library. This does work but feels a bit hacky.
Is there a cleaner way for a library to depend on features like heapless::pool that require a specific platform such as arm_llsc ?Maybe the arm_llsc detection can be exposed as a helper or separate crate? Or via some feature flag?
I can compile my application (thumbv7em-none-eabihf) directly against heapless and it works fine. But in this case I have a library (e.g. device driver) that depends on heapless and it won't detect the
arm_llsc
platform correctly.As a workaround I have copied build.rs into my library. This does work but feels a bit hacky. Is there a cleaner way for a library to depend on features like
heapless::pool
that require a specific platform such asarm_llsc
?Maybe thearm_llsc
detection can be exposed as a helper or separate crate? Or via some feature flag?