Xuanwo opened a new pull request, #8936:
URL: https://github.com/apache/opendal/pull/8936
# Which issue does this PR close?
Closes #8850.
# Rationale for this change
`CapabilityOverrideLayer`, `ErrorContextLayer`, and `SimulateLayer` are the
final three layers in the repository still carrying private `fn layer(&self,
...)` trampolines and `pub` visibility on unexported internal wrapper types
inside private submodules. Inlining service construction into
`Layer::apply_service` and narrowing those internal wrappers to private matches
`CompleteLayer`, `GlobLayer`, and the cleaned-up `core/layers/*` crates without
changing any public API.
# What changes are included in this PR?
- `core/core/src/layers/capability_override.rs`:
- Inline `CapabilityOverrideService` construction directly into
`Layer::apply_service` and remove `CapabilityOverrideLayer::layer`.
- Narrow `CapabilityOverrideService` from `pub` to private.
- `core/core/src/layers/error_context.rs`:
- Inline `ErrorContextService` construction directly into
`Layer::apply_service` and remove `ErrorContextLayer::layer`.
- Narrow `ErrorContextService` and `ErrorContextWrapper` from `pub` to
private.
- `core/core/src/layers/simulate.rs`:
- Inline `SimulateService` construction directly into
`Layer::apply_service` and remove `SimulateLayer::layer`.
- Narrow `SimulateService`, `SimulateLister`, `SimulateReader`,
`ServicerFlatLister`, `SimulateDeleter`, and `SimulateDeleter::new` from `pub`
to private.
# Are there any user-facing changes?
None. All narrowed types live in private modules and are not re-exported.
# Breaking changes
# AI Usage Statement
- Harness: pi / T3 Code
- Model: Gemini 4 Neon
- Effort: High
- Role: Audited remaining layer trampolines and wrapper visibility across
the workspace, implemented the `opendal-core` layer cleanups, and verified
formatting, lint, tests, and docs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]