Skip to content

build(feature): drop redundant sync_wrapper - #817

Merged
0x676e67 merged 2 commits into
mainfrom
build
Jul 19, 2025
Merged

build(feature): drop redundant sync_wrapper#817
0x676e67 merged 2 commits into
mainfrom
build

Conversation

@0x676e67

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the redundant sync_wrapper dependency from the core HTTP client implementation by refactoring the ResponseFuture to use a direct Pin<Box<dyn Future>> instead of wrapping it with SyncWrapper. The changes move ResponseFuture to its own module and make sync_wrapper an optional dependency only needed for specific features.

  • Extracted ResponseFuture implementation to a separate future.rs module
  • Replaced SyncWrapper<Pin<Box<dyn Future>>> with direct Pin<Box<dyn Future>>
  • Made sync_wrapper an optional dependency for multipart and stream features only

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/core/client/mod.rs Removes ResponseFuture implementation and sync_wrapper usage, adds future module import
src/core/client/future.rs New module containing the refactored ResponseFuture implementation without sync_wrapper
src/client/http/future.rs Updates import to use the new ResponseFuture location
src/client/http/aliases.rs Removes unused CoreResponseFuture type alias
Cargo.toml Makes sync_wrapper optional, only required for specific features

Comment thread src/core/client/future.rs
Comment thread src/core/client/future.rs
@0x676e67
0x676e67 merged commit a737f56 into main Jul 19, 2025
7 checks passed
@0x676e67
0x676e67 deleted the build branch July 19, 2025 05:12
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.

2 participants