new feature: generate operation options for all bindings from core
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with core/core/src/types/options.rs and the shared parser in dev/src/generate/core_options.rs, then inspect the selected binding’s generator and tests. Follow the binding-specific sub-issue, since API shape and prerequisites differ, and keep the shared generator changes isolated where the issue requires. Done means the binding’s existing and missing operation options are generated from core and its CI diff check, including check_generated in .github/workflows/ci_odev.yml, passes.
Written by the indexing model from the issue text.
Description
Drafted with AI assistance; the author is accountable for it.
Feature Description
Generate each binding's *Options from core/core/src/types/options.rs via dev/src/generate/core_options.rs, like #9122 and #9129 did for Capability and Metadata.
Problem and Solution
Each binding sub-issue keeps one checklist item per options struct. A struct is done when its options are generated from core and every core field is exposed. Positional and layout surfaces stay append-only.
- .NET: #8440
- Java: #8650 (#9233, #9234)
- Java: copy, rename, compose, restore, and deleter options (not covered by #8650)
- Python: #9321
- Node.js: #9322
- C and Go: #9323
- C++: #9324
- Ruby: #9325 (API shape to be agreed first; not planned immediately)
- OCaml: #9326 (API shape to be agreed first; not planned immediately)
- Zig: the
Operatorwrapper takes no options; users reach the C option structs throughopendal.c(#9323) - Haskell: exposes only
WriterOption.woAppend - Lua: no operation options
- PHP: no operation options
- Dart: no operation options
- D: no operation options
- Swift: no operation options
- MoonBit: no operation options
Bindings without a sub-issue are open for anyone.
Rules for every binding PR
- Compute gaps on a fresh
main: unlisted fields silently get core defaults. - Generating existing options changes no API, ABI, or behaviour, only docs. Prove it with a surface diff and an old-consumer probe against
main. - Docs are core's full doc comments in binding names (#9334). Check each claim on a real build; fix wrong core docs in
options.rsfor every binding (#9348). - Tests must fail when broken: exact member sets, full doc paragraphs from core, frozen literals from
main, each mutation-proven. - Merge (not rebase)
origin/mainbefore each push and rerun everyci_odev.ymlgenerator. Touchcore_options.rsorrustdoc.rsonly if other bindings' output stays unchanged. - A PR that exposes a new option names the caller and operation for it (Xuanwo).
checksumfollows #9316.ReadOptions::limitintentionally rejects a positivechunk,concurrent> 1, and presign withConfigInvalid(#9200 closed);ReaderOptionshas nolimit.
Additional Context
C and Go share generate -l c, so each PR covers both. #9316 changes every Metadata output. Related: #8436, #8440, #8650, #9319 (resolved).
Are you willing to contribute to the development of this feature?
- Yes, I am willing to contribute to the development of this feature.
- Dominant language
- Rust
- Stars
- 5.5k
- Forks
- 869
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 862
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryPossibly taken @xgbtxy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
apache/opendal#9635 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
core enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/opendal#9572 · 1 reaction ·
Maintainers usually reply within 1 day
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapPossibly taken @rohan4naik claimed this today. Openbindings/nodejs bug
Difficulty 3/5 1-2 days Newbie friendliness 76/100
apache/opendal#9569 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Possibly taken @Xuanwo claimed this today. Openbug core
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/opendal#9567 · 1 reaction ·
Maintainers usually reply within 1 day
-
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
Difficulty 5/5 Over a week Newbie friendliness 20/100
apache/opendal#9560 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Android bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anefzaoui/misterdownloadmanager#2516 ·
Maintainers usually reply within 1 day
-
editor ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
state:triage tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
agent8-cash/ethpayserver#731 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day