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

Make defmt-print async #855

Merged
merged 5 commits into from
Jun 25, 2024
Merged

Conversation

JomerDev
Copy link
Contributor

As discussed in #807 I've split out the work to make defmt-print async into a separate PR.
It changes very little, but please do test it to see if everything still works.
As for the tokio features, I've added all of the features needed instead of using full but afaik it wouldn't have made much of a difference as most features were needed anyway.

@jonathanpallant
Copy link
Contributor

Build time (main): 57.09s user 2.33s system 215% cpu 27.534 total

Build time (PR): 69.60s user 2.75s system 226% cpu 31.895 total

So an extra 4 seconds to compile, or +15%, on this macBook. I think that's fine.

Copy link
Contributor

@jonathanpallant jonathanpallant left a comment

Choose a reason for hiding this comment

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

Thank you for this PR. The cognitive overhead of switching to Tokio here seems small, so this looks good to me.

print/src/main.rs Outdated Show resolved Hide resolved
print/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Member

@Urhengulas Urhengulas left a comment

Choose a reason for hiding this comment

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

Thank you!

@Urhengulas Urhengulas enabled auto-merge June 25, 2024 17:37
@Urhengulas Urhengulas added this pull request to the merge queue Jun 25, 2024
Merged via the queue into knurling-rs:main with commit 29f1472 Jun 25, 2024
16 checks passed
@JomerDev JomerDev deleted the async-defmt-print branch June 25, 2024 22:55
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.

3 participants