Skip to content

Comments

refactor: Split dashmap service to new crate#7022

Merged
Xuanwo merged 2 commits intomainfrom
extract-dashmap-service
Dec 16, 2025
Merged

refactor: Split dashmap service to new crate#7022
Xuanwo merged 2 commits intomainfrom
extract-dashmap-service

Conversation

@koushiro
Copy link
Member

Which issue does this PR close?

Part of #6829

Closes #6888

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 16, 2025 06:10
@koushiro koushiro requested a review from Xuanwo as a code owner December 16, 2025 06:10
@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 16, 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 dashmap service implementation by extracting it from the monolithic opendal-core crate into a separate opendal-service-dashmap crate. This follows the ongoing pattern of modularizing services to improve build times and maintainability.

Key Changes:

  • Created new opendal-service-dashmap crate with its own Cargo.toml
  • Updated all dashmap service source files to use opendal_core:: imports instead of relative crate:: imports
  • Removed dashmap-related dependencies and feature flags from opendal-core

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/Cargo.toml Updated services-dashmap feature to depend on the new opendal-service-dashmap crate and added the dependency (alphabetically ordered)
core/core/Cargo.toml Removed dashmap dependency and services-dashmap feature flag from core crate
core/core/src/services/mod.rs Removed dashmap module import as it's now in a separate crate
core/src/lib.rs Added re-export for opendal_service_dashmap under the services-dashmap feature flag
core/services/dashmap/Cargo.toml New crate manifest defining the standalone dashmap service package with necessary dependencies
core/services/dashmap/src/lib.rs Updated to use opendal_core:: imports and added crate-level attributes for docs and lint enforcement
core/services/dashmap/src/backend.rs Reorganized imports to use opendal_core:: instead of crate::
core/services/dashmap/src/config.rs Updated imports and improved test error handling with Result return types
core/services/dashmap/src/core.rs Simplified imports to use opendal_core::*
core/services/dashmap/src/deleter.rs Updated imports to reference opendal_core
core/services/dashmap/src/docs.md Updated usage example to import from opendal_service_dashmap instead of opendal_core::services
core/services/dashmap/src/lister.rs Reorganized imports and qualified Entry type with oio:: prefix for clarity
core/services/dashmap/src/writer.rs Updated imports to use opendal_core and simplified local module imports
core/services/sqlite/Cargo.toml Removed trailing newline for consistency
core/Cargo.lock Reflected dependency changes with new opendal-service-dashmap package entry
Comments suppressed due to low confidence (1)

core/services/dashmap/src/lib.rs:22

  • The module-level doc comment should be placed after the crate attributes for consistency with other service crates. In similar services like cloudflare-kv and fs, the pattern is to have cfg_attr first, then the doc comment, then deny attributes. The current order places the doc comment before cfg_attr.

💡 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 16, 2025
@Xuanwo Xuanwo merged commit af58f7d into main Dec 16, 2025
391 checks passed
@Xuanwo Xuanwo deleted the extract-dashmap-service branch December 16, 2025 07:52
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: dashmap

2 participants