Skip to content

Comments

refactor: Split upyun service to new crate#7048

Merged
Xuanwo merged 2 commits intomainfrom
extract-upyun-service
Dec 17, 2025
Merged

refactor: Split upyun service to new crate#7048
Xuanwo merged 2 commits intomainfrom
extract-upyun-service

Conversation

@koushiro
Copy link
Member

Which issue does this PR close?

Part of #6829
Closes #6927

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

AI Usage Statement

Zed with GPT-5.1 Codex-Max

Copilot AI review requested due to automatic review settings December 17, 2025 05:41
@koushiro koushiro requested a review from Xuanwo as a code owner December 17, 2025 05:41
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 17, 2025
Copy link

Copilot AI left a comment

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 refactors the Upyun service implementation by extracting it from the monolithic opendal-core crate into its own separate opendal-service-upyun crate, following the pattern established by other recently refactored services like S3, TiKV, and others.

Key changes:

  • Extracted Upyun service into opendal-service-upyun crate under core/services/upyun/
  • Updated all imports from crate::* to opendal_core::* throughout the service code
  • Moved dependencies (hmac, sha1, md-5) from core to the new service crate

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
core/src/lib.rs Added re-export for the new opendal-service-upyun crate
core/services/upyun/Cargo.toml New Cargo manifest for the standalone upyun service crate
core/services/upyun/src/*.rs Updated imports from crate::* to opendal_core::*
core/services/upyun/src/docs.md Updated documentation example to use new crate path
core/core/src/services/mod.rs Removed upyun module from core services
core/core/Cargo.toml Removed upyun-specific dependencies (hmac, sha1)
core/Cargo.toml Updated services-upyun feature to depend on new crate
core/Cargo.lock Added new opendal-service-upyun package entry
Comments suppressed due to low confidence (1)

core/services/upyun/src/lib.rs:21

  • The module-level doc comment should be placed after the crate-level attributes for consistency with other service crates like s3. The recommended order is: #![cfg_attr(docsrs, feature(doc_cfg))], then //! doc comment, then #![deny(missing_docs)].

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@Xuanwo Xuanwo 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 working on this!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 17, 2025
@Xuanwo Xuanwo merged commit 2b43da2 into main Dec 17, 2025
706 of 707 checks passed
@Xuanwo Xuanwo deleted the extract-upyun-service branch December 17, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[core split] Service: upyun

2 participants