Skip to content

Comments

refactor: Split immutable-index layer to new crate#6967

Merged
Xuanwo merged 5 commits intomainfrom
extract-immutable-index-layer
Dec 12, 2025
Merged

refactor: Split immutable-index layer to new crate#6967
Xuanwo merged 5 commits intomainfrom
extract-immutable-index-layer

Conversation

@koushiro
Copy link
Member

Which issue does this PR close?

part of #6829

Closes #6938

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@koushiro koushiro requested a review from Xuanwo as a code owner December 11, 2025 06:05
Copilot AI review requested due to automatic review settings December 11, 2025 06:05
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" labels Dec 11, 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 successfully refactors the immutable-index layer from the core monolith into a separate crate (opendal-layer-immutable-index), following the ongoing pattern of extracting layers into independent crates.

Key changes:

  • Created a new standalone crate for the immutable-index layer at core/layers/immutable-index/
  • Updated imports from crate::* to opendal_core::* throughout the layer code
  • Added proper feature flag (layers-immutable-index) and dependency configuration

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
core/src/lib.rs Added re-export of the new immutable-index layer crate under the layers-immutable-index feature flag
core/layers/immutable-index/src/lib.rs Updated imports from internal crate::* to external opendal_core::*, updated documentation examples, and removed the services-http feature flag from tests
core/layers/immutable-index/Cargo.toml New Cargo manifest for the standalone layer crate with proper dependencies on opendal-core
core/core/src/layers/mod.rs Removed the immutable-index module declaration as it's now an external crate
core/Cargo.toml Added feature flag definition and dependency entry for the new layer crate
core/Cargo.lock Updated lock file with the new package entry

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

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Dec 11, 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.

Thank you for working on this!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 12, 2025
@Xuanwo Xuanwo merged commit 210afef into main Dec 12, 2025
387 of 389 checks passed
@Xuanwo Xuanwo deleted the extract-immutable-index-layer branch December 12, 2025 10:35
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] Layer: immutable_index

2 participants