new feature: expose full-file checksum metadata and options in generated bindings
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
調査の方向性
Start with dev/src/generate/metadata.rs, dev/src/generate/core_options.rs, and the checksum handling in dev/src/generate/java.rs, then compare them with the core types under core/core/src/types/. Run the existing binding-generation workflow and review the resulting mirrors. Done means generated bindings expose metadata checksum values and the agreed read, reader, stat, and write checksum options, with maintainer decisions documented for Python compatibility and write digests.
索引モデルが issue の本文から書いたものです。
説明
Drafted with AI assistance and reviewed by the submitter.
Feature Description
Expose core's full-file checksum in the bindings: Metadata::checksum, the checksum hint on StatOptions, ReadOptions, and ReaderOptions, and WriteOptions::checksum (WriteChecksum).
Problem and Solution
Core is complete (#9182). dev/src/generate/metadata.rs marks checksum as binding-specific, so each binding maps Checksum itself. dev/src/generate/core_options.rs skips WriteOptions::checksum.
Binding state:
- Python:
stat(checksum=True)andMetadata.checksumas(algorithm, digest bytes)orNone(#9328).write()andopen()takechecksum: ChecksumAlgorithm, which maps toWriteChecksum::Algoonly (#9231). - .NET: forwards the
ReadOptionsandStatOptionshints. It has noMetadatachecksum, so the hints have no visible effect. - Java: the JNI layer always sends
checksum: false. - Other bindings: no checksum surface.
No core change is necessary. Each binding adds, in this order:
- A
Metadatachecksum: the algorithm name and the raw digest bytes, with the Python names (crc32c,crc64nvme,crc64ecma,md5,sha1,sha256). - The
stathint. - The write intent. If
write()returnsMetadata, the caller also gets the verified digest.
Skip the read and reader hints in a binding that has no reader metadata. The hint does not verify data, so it has no visible effect there.
Open question: does a binding expose Any, Fast, and Expected, or only Algo? #9231 deferred Expected until a caller needs it. Proposal for Python and Node.js: accept an algorithm name, "any", "fast", or an (algorithm, digest) value with the same shape as Metadata.checksum.
Progress
- Python:
(algorithm, digest)and"any"write intents (#9459) - Node.js:
Metadata.checksum, thestathint, and write intents (#9460) - Java
- .NET:
Metadatachecksum (the read and stat hints exist) - C and Go (#9323)
- C++ (#9324)
Additional Context
Related: #9182, #9231, #9328, #9320.
Are you willing to contribute to the development of this feature?
- Yes, I am willing to contribute to the development of this feature.
- 主要言語
- Rust
- スター
- 5.5k
- フォーク
- 869
- 平均マージ
- 8時間 2分
- マージ済み PR(30日)
- 862
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/opendal のほかの issue
-
bug(services/fs): deleting "/" removes the configured root directory対応中かも @xgbtxy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
apache/opendal#9635 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
core enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/opendal#9572 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gap対応中かも @rohan4naik が今日担当しました。 オープンbindings/nodejs bug
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
apache/opendal#9569 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()対応中かも @Xuanwo が今日担当しました。 オープンbug core
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
apache/opendal#9567 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bindings/c bindings/dotnet bindings/go bindings/java bindings/python bindings/ruby core integrations/object_store release release-blocker services/azblob services/azdls services/dropbox services/gcs_grpc services/git services/hf3fs services/redis services/remotestorage services/s3 website
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
apache/opendal#9560 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
メンテナーはふだん 17 日以内に返信
-
bug rust SDK & CLI & REST API
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
boxlite-ai/boxlite#3292 ·
メンテナーはふだん 1 日以内に返信
-
Android bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anefzaoui/misterdownloadmanager#2516 ·
メンテナーはふだん 1 日以内に返信
-
editor ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
state:triage tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
agent8-cash/ethpayserver#731 ·
メンテナーはふだん 1 日以内に返信