Closed nickray closed 4 years ago
r? @korken89
(rust_highfive has picked a reviewer for you, use r? to override)
ping @korken89?
I'm inclined to merge because I have often wanted exactly this feature and it would be useful. My only reservation is around negative features being generally considered unwise since any crate in the dependency tree could enable them. However, I don't think that's really an issue in this case: only the end user application would be likely to enable this feature anyway.
If no one else from @rust-embedded/cortex-m weighs in with an opinion soon I'll go ahead and merge.
I have the same reservation, while I'd like it it would not work with the additive way features are speed to work.
But then again, this is a user facing crate so it will most likely not be an issue.
Build succeeded:
I must not be the only one who indulges in semihosting for quick print-debugging and then has a trail of intermediate mess...
With this new feature, one can easily patch out all these calls in the application (by additivity of cargo features), and get a binary that runs without debugger attached.