Skip to content

docs: add SyncIoBridge cross-references to copy functions#7798

Merged
ADD-SP merged 3 commits intotokio-rs:masterfrom
AndreaBozzo:docs/synciobridge-cross-references
Dec 29, 2025
Merged

docs: add SyncIoBridge cross-references to copy functions#7798
ADD-SP merged 3 commits intotokio-rs:masterfrom
AndreaBozzo:docs/synciobridge-cross-references

Conversation

@AndreaBozzo
Copy link
Contributor

Motivation

Issue #6795 requested improved documentation for SyncIoBridge alternatives. While PR #6815 added comprehensive documentation to SyncIoBridge itself, the final checklist item remained incomplete:

Add links to the above in other relevant places. For example tokio::io::copy could use a note about this, since people often look here.

Solution

Added cross-reference notes to tokio::io::copy and tokio::io::copy_buf documentation, guiding users to the SyncIoBridge docs for async alternatives when working with synchronous consumers (hashers, compressors, parsers).

Closes #6795

Add cross-reference notes to tokio::io::copy and tokio::io::copy_buf
documentation pointing users to SyncIoBridge docs for guidance on
async alternatives to using SyncIoBridge with synchronous consumers
like hashers, compressors, and data parsers.

This completes the remaining checklist item from tokio-rs#6795:
'Add links to the above in other relevant places'

Closes tokio-rs#6795
@ADD-SP ADD-SP added T-docs Topic: documentation A-tokio Area: The main tokio crate M-io Module: tokio/io labels Dec 27, 2025
Copy link
Member

@ADD-SP ADD-SP left a comment

Choose a reason for hiding this comment

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

Overall looks good to me, just a minor comment.

@ADD-SP ADD-SP added the S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author. label Dec 29, 2025
Remove detailed examples list and extra links, keeping only
a concise reference to SyncIoBridge documentation as suggested
in review.
@AndreaBozzo
Copy link
Contributor Author

@ADD-SP

thank you for your time and review, i addressed your suggestions in commit ab7d067

@ADD-SP ADD-SP enabled auto-merge (squash) December 29, 2025 14:26
Copy link
Member

@ADD-SP ADD-SP left a comment

Choose a reason for hiding this comment

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

Thanks!

@ADD-SP ADD-SP merged commit 4bc2a15 into tokio-rs:master Dec 29, 2025
88 checks passed
@AndreaBozzo AndreaBozzo deleted the docs/synciobridge-cross-references branch December 29, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate M-io Module: tokio/io S-waiting-on-author Status: awaiting some action (such as code changes) from the PR or issue author. T-docs Topic: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recommend alternatives to SyncIoBridge

2 participants