Repository navigation
feat(core)!: extend reader and presign builders and unify blocking presign - #9629
Merged
Merged
Conversation
…esign Add fluent options that reuse reader and presign validation. Dispatch the blocking presign defaults through their options methods so they run on the captured Tokio runtime. The captured runtime must make progress while the caller waits. Document the migration for callers using an idle current-thread runtime.
PsiACE
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #9544
Rationale for this change
Rust callers configuring reader prefetch or several supported presign options currently have to construct an options struct. The four blocking presign shortcuts also poll the async operation on the caller's thread, while the
_optionsmethods dispatch it to the captured runtime.What changes are included in this PR?
FutureReader::prefetch,FuturePresignRead::{range, version}, andFuturePresignWrite::{content_language, if_not_exists, if_match, user_metadata, checksum}. The fluent methods use the same option validation and request construction as_options._optionsmethods with default options.Are there any user-facing changes?
Rust callers can set read-ahead, presigned byte ranges and versions, and presigned upload metadata and conditions in fluent calls. The presigned write checksum takes a
Checksumwith the raw bytes of a precomputed full-file digest. OpenDAL passes it asWriteChecksum::Expected, as required by S3 presigning. The available algorithms depend on the service and preset. Send the method and headers from the returned request with the matching upload payload.Breaking changes
Affected packages: core
Migration:
Runtime::block_onon another thread during the call. In async code, use the asyncOperatormethods.ErrorKind::Unexpectedfrom the blocking shortcut.AI Usage Statement
magpie/codex/gpt-6.2-astrawiththinking=highto trace option lowering and service support and identify the blocking runtime migration.magpie/codex/gpt-6.2-astrawiththinking=xhighto set the v0.60 implementation scope and coordinate the candidate.magpie/codex/gpt-6.2-solwiththinking=maxto implement the APIs, write the migration guidance and PR draft, and validate the candidate on NieR. S3 checks exercised local request construction and signing with synthetic credentials. Cloud request execution was outside the verification scope.magpie/devin/swe-2-1withthinking=highto independently review the setters and exercise blocking presign with multi-thread, idle current-thread, and externally driven current-thread runtimes.