Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Add equivalent of dbg! macro #42

Merged
merged 4 commits into from
Aug 22, 2019
Merged

Conversation

nickray
Copy link
Contributor

@nickray nickray commented Aug 22, 2019

I think this would be quite useful. Thoughts?

Maybe it would be better for dbg! to be in core with somehow switchable implementation (semihosting, vcom, etc.), but I don't know how to approach that.

Added CHANGELOG also for the missing one for #39

Perhaps some more documentation is needed?

@nickray nickray requested a review from a team as a code owner August 22, 2019 10:55
@nickray
Copy link
Contributor Author

nickray commented Aug 22, 2019

Added an example as documentation.

adamgreig
adamgreig previously approved these changes Aug 22, 2019
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

Great idea, thanks!

bors r+

bors bot added a commit that referenced this pull request Aug 22, 2019
42: Add equivalent of dbg! macro r=adamgreig a=nickray

I think this would be quite useful. Thoughts?

Maybe it would be better for `dbg!` to be in core with somehow switchable implementation (semihosting, vcom, etc.), but I don't know how to approach that.

Added CHANGELOG also for the missing one for #39

Perhaps some more documentation is needed?


Co-authored-by: Nicolas Stalder <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 22, 2019

Build failed

@adamgreig
Copy link
Member

Looks like we'll need to edition-2018ify this crate first.

@nickray
Copy link
Contributor Author

nickray commented Aug 22, 2019

Interesting, I see no compilation errors (also explicitly setting 2015 edition), and successfully link into a 2018 edition example. Does Travis have some sort of strict mode? Or maybe it's because I use 1.37.

I assume the edition update should be a separate request, right? If I go at it, anything I need to consider besides making it compile?

@nickray
Copy link
Contributor Author

nickray commented Aug 22, 2019

Hehe, adding stable thumbv8m testing fixed https://travis-ci.org/rust-embedded/cortex-m-semihosting/jobs/575372081

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

bors r+

bors bot added a commit that referenced this pull request Aug 22, 2019
42: Add equivalent of dbg! macro r=adamgreig a=nickray

I think this would be quite useful. Thoughts?

Maybe it would be better for `dbg!` to be in core with somehow switchable implementation (semihosting, vcom, etc.), but I don't know how to approach that.

Added CHANGELOG also for the missing one for #39

Perhaps some more documentation is needed?


Co-authored-by: Nicolas Stalder <[email protected]>
@adamgreig
Copy link
Member

We should probably mention edition2018 in the changelog but we can add that after.

@bors
Copy link
Contributor

bors bot commented Aug 22, 2019

Build succeeded

@bors bors bot merged commit 23eb7fd into rust-embedded:master Aug 22, 2019
@nickray nickray deleted the nickray-dbg-macro branch August 22, 2019 23:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants