Skip to content

Comments

refactor: Split pcloud service to new crate#7047

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

refactor: Split pcloud service to new crate#7047
Xuanwo merged 2 commits intomainfrom
extract-pcloud-service

Conversation

@koushiro
Copy link
Member

Which issue does this PR close?

Part of #6829
Closes #6915

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

@koushiro koushiro requested a review from Xuanwo as a code owner December 17, 2025 04:58
Copilot AI review requested due to automatic review settings December 17, 2025 04:58
@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 pCloud service implementation by extracting it from the monolithic core into a separate opendal-service-pcloud crate, following the established pattern for other OpenDAL service implementations.

Key Changes:

  • Created new opendal-service-pcloud crate with its own Cargo.toml
  • Updated all import statements from crate::* to opendal_core::* throughout the pcloud service code
  • Migrated the services-pcloud feature flag from opendal-core to the main core 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/services/pcloud/Cargo.toml New crate manifest defining the pcloud service package with dependencies on opendal-core
core/services/pcloud/src/lib.rs Updated module documentation and service registration to use external opendal_core references
core/services/pcloud/src/backend.rs Changed imports from crate-relative to opendal_core external dependency
core/services/pcloud/src/config.rs Updated imports and improved test error handling with Result return types
core/services/pcloud/src/core.rs Changed imports from crate-relative to opendal_core external dependency
core/services/pcloud/src/deleter.rs Changed imports from crate-relative to opendal_core external dependency
core/services/pcloud/src/error.rs Changed imports from crate-relative to opendal_core external dependency
core/services/pcloud/src/lister.rs Changed imports and fully qualified oio::Entry usage
core/services/pcloud/src/writer.rs Changed imports from crate-relative to opendal_core external dependency
core/services/pcloud/src/docs.md Updated example code to import Pcloud from opendal_service_pcloud instead of opendal_core::services
core/core/src/services/mod.rs Removed pcloud module declaration as it's now an external crate
core/core/Cargo.toml Removed services-pcloud feature flag from opendal-core
core/src/lib.rs Added re-export of opendal_service_pcloud under services module
core/Cargo.toml Updated services-pcloud feature to depend on external crate and added opendal-service-pcloud dependency
core/Cargo.lock Added opendal-service-pcloud package entry with its dependencies

💡 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 615b297 into main Dec 17, 2025
705 of 707 checks passed
@Xuanwo Xuanwo deleted the extract-pcloud-service branch December 17, 2025 08:59
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: pcloud

2 participants