Skip to content

Comments

refactor(services/onedrive): split into separate crate#6996

Merged
Xuanwo merged 3 commits intoapache:mainfrom
XYenon:refactor/onedrive/amp-free
Dec 18, 2025
Merged

refactor(services/onedrive): split into separate crate#6996
Xuanwo merged 3 commits intoapache:mainfrom
XYenon:refactor/onedrive/amp-free

Conversation

@XYenon
Copy link
Contributor

@XYenon XYenon commented Dec 12, 2025

Which issue does this PR close?

Closes #6912.

#6829

Rationale for this change

Move services onedrive out as a new crate.

What changes are included in this PR?

Extract OneDrive service into its own crate 'opendal-service-onedrive' while maintaining the public API surface 'opendal::services::onedrive' through the facade.

Changes:

  • Create new crate at core/services/onedrive/ with full service implementation
  • Update imports from crate::* to opendal_core::* in service code
  • Remove onedrive module from core/core/src/services/mod.rs
  • Update root Cargo.toml to depend on opendal-service-onedrive with feature gate
  • Add facade re-export in core/src/lib.rs to preserve public API
  • Fix documentation examples to import from opendal_service_onedrive crate
  • All tests pass, clippy checks pass, public API preserved

Are there any user-facing changes?

AI Usage Statement

https://ampcode.com/threads/T-019b1292-a7dc-7208-858f-578a34de1913

@XYenon XYenon requested a review from Xuanwo as a code owner December 12, 2025 12:50
@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 12, 2025
@XYenon XYenon force-pushed the refactor/onedrive/amp-free branch from da2fe76 to f4e05fa Compare December 12, 2025 12:52
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.

Mostly LGTM

// specific language governing permissions and limitations
// under the License.

pub use crate::{
Copy link
Member

Choose a reason for hiding this comment

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

What's this for? Why we need a mod.rs here?

@XYenon XYenon force-pushed the refactor/onedrive/amp-free branch from f4e05fa to 0bcf2b9 Compare December 13, 2025 05:11
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 14, 2025
Extract OneDrive service into its own crate 'opendal-service-onedrive' while
maintaining the public API surface 'opendal::services::onedrive' through the
facade.

Changes:
- Create new crate at core/services/onedrive/ with full service implementation
- Update imports from crate::* to opendal_core::* in service code
- Remove onedrive module from core/core/src/services/mod.rs
- Update root Cargo.toml to depend on opendal-service-onedrive with feature gate
- Add facade re-export in core/src/lib.rs to preserve public API
- Fix documentation examples to import from opendal_service_onedrive crate
- All tests pass, clippy checks pass, public API preserved
@XYenon XYenon force-pushed the refactor/onedrive/amp-free branch from 0bcf2b9 to bf2c35f Compare December 15, 2025 10:54
@Xuanwo Xuanwo merged commit 887b449 into apache:main Dec 18, 2025
331 of 333 checks passed
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: onedrive

2 participants