Skip to content

Comments

refactor(services/http): Move services http out as a crate#6870

Merged
koushiro merged 7 commits intoapache:mainfrom
0lai0:opendal-6829-http
Dec 18, 2025
Merged

refactor(services/http): Move services http out as a crate#6870
koushiro merged 7 commits intoapache:mainfrom
0lai0:opendal-6829-http

Conversation

@0lai0
Copy link
Contributor

@0lai0 0lai0 commented Dec 6, 2025

Which issue does this PR close?

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

Rationale for this change

Move services http out as a new crate

What changes are included in this PR?

Following the RFC-6828 modularization strategy, we have moved the http service to a separate crate. This reduces opendal-core complexity and improves compilation speed for users not using this service

Are there any user-facing changes?

no

@0lai0 0lai0 requested a review from Xuanwo as a code owner December 6, 2025 01:08
@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 6, 2025

#[cfg(test)]
#[cfg(feature = "services-http")]
// Note: services-http feature is now in opendal facade crate, not opendal-core
Copy link
Member

Choose a reason for hiding this comment

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

This the case we need to avoid. Can you move this layer out first?

impl Write for () {
async fn write(&mut self, _: Buffer) -> Result<()> {
unimplemented!("write is required to be implemented for oio::Write")
Err(Error::new(
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't touch unrelated code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, thanks for head up.

@Xuanwo Xuanwo mentioned this pull request Dec 8, 2025
86 tasks
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Dec 9, 2025
@0lai0
Copy link
Contributor Author

0lai0 commented Dec 9, 2025

I'm wondering how to resolve conflicts. I could not use web to edit , so I use git fetch origin and git merge origin/main, but there is a lot of upstream.

@Xuanwo
Copy link
Member

Xuanwo commented Dec 9, 2025

I'm wondering how to resolve conflicts. I could not use web to edit , so I use git fetch origin and git merge origin/main, but there is a lot of upstream.

Anyways, you'll need to start a new PR for moving immutable layer out first.

@koushiro
Copy link
Member

Hi @0lai0, the immutable index layer has been split into a separate crate and does not depend on the HTTP service, can you resolve the conflicts?

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 18, 2025
@koushiro koushiro merged commit a6fa856 into apache:main Dec 18, 2025
591 of 592 checks passed
@0lai0
Copy link
Contributor Author

0lai0 commented Dec 19, 2025

Apologies for missing the message. Thanks @Xuanwo and @koushiro for making the changes.

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:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants