Skip to content

Comments

refactor(services/moka): Move services moka out as a crate#6868

Merged
Xuanwo merged 1 commit intoapache:mainfrom
manchangfengxu:feature/split-moka-service
Dec 5, 2025
Merged

refactor(services/moka): Move services moka out as a crate#6868
Xuanwo merged 1 commit intoapache:mainfrom
manchangfengxu:feature/split-moka-service

Conversation

@manchangfengxu
Copy link
Contributor

This commit extracts the moka service into its own crate, opendal-service-moka, following the established service splitting pattern.

The changes primarily involve moving the source files and updating Cargo configurations accordingly.

Which issue does this PR close?

Part of #6829. This PR completes the task for the moka service.

Rationale for this change

This change is part of the ongoing effort to modularize OpenDAL services as outlined in RFC-6828. By splitting the moka service into its own crate, we reduce the complexity and compile times of opendal-core for users who do not need this specific service.

What changes are included in this PR?

  • Created the new crate opendal-service-moka under core/services/.
  • Migrated all moka service source code from opendal-core to the new crate.
  • Updated Cargo.toml configurations to reflect the new workspace member, dependency, and feature flag.
  • Ensured the moka service is still exposed through the opendal facade crate to maintain API compatibility.

Are there any user-facing changes?

No, this is a refactoring.

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 5, 2025
pub use self::mini_moka::*;

#[cfg(feature = "services-moka")]
mod moka;
Copy link
Member

Choose a reason for hiding this comment

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

Seems you didn't remove the files under moka?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I forgot to delete it.

This commit extracts the moka service into its own crate, `opendal-service-moka`, following the established service splitting pattern.

The changes primarily involve moving the source files and updating Cargo configurations accordingly.

Signed-off-by: manchangfengxu <[email protected]>
@manchangfengxu manchangfengxu force-pushed the feature/split-moka-service branch from 7bfd1c2 to 799be9b Compare December 5, 2025 14:19
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Dec 5, 2025
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.

Great, thank you for working on this!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 5, 2025
@Xuanwo Xuanwo merged commit 6ee74a5 into apache:main Dec 5, 2025
329 of 332 checks passed
@manchangfengxu manchangfengxu deleted the feature/split-moka-service branch December 5, 2025 14:37
@Xuanwo Xuanwo mentioned this pull request Dec 5, 2025
86 tasks
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.

2 participants