new feature: generate C++ operation options from core
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- api, build-system, tooling
Research direction
Start with dev/src/generate/cpp.rs, then trace the option mirrors and conversions in bindings/cpp/src/lib.rs and bindings/cpp/src/operator.cpp against bindings/cpp/include/data_structure.hpp. Implement the step-one generator and frozen-surface test before adding public options, reverse metadata conversion, new Operator methods, and release-impact documentation. The work is done when generated and handwritten surfaces agree, missing options and methods are exposed as specified, formatting and C++ CI diff checks pass, and bindings/cpp/upgrade.md declares the layout change.
Written by the indexing model from the issue text.
Description
Drafted with AI assistance; the author is accountable for it.
Feature Description
Generate the C++ binding's operation options from core, then expose the options C++ lacks. Part of #9320, whose rules apply to every PR here.
Progress
One item per options struct. A struct is done when its options are generated from core and every core field is exposed. New fields change struct layout, so they wait for one batched C/C++ layout break.
-
ListOptions- Generated from core (#9331)
-
glob
-
StatOptions- Generated from core (#9361)
- Version conditions
-
ReadOptions- Generated from core (#9378)
-
limitand version conditions
-
ReaderOptions- Generated from core (#9382)
- Version conditions
-
WriteOptions- Generated from core (#9387)
-
content_language,expires, version conditions,if_not_changed
-
DeleteOptions- Generated from core (#9366)
- Conditions
-
CopyOptions- Generated from core (#9399)
- Conditions and destination metadata
-
RenameOptions(#9401) -
RestoreOptions,DeleterOptions,ComposeOptions: needOperatormethods (core blocking compose: #9423) -
checksum(#9316)
Problem and Solution
Reference PRs: #9331 and #9361. The OPTIONS table in dev/src/generate/cpp.rs renders each option's public struct, cxx mirror, and both converters. Regenerate with cargo run --manifest-path=dev/Cargo.toml -- generate -l cpp.
C++ invariants
- Member order is append-only, since callers brace-initialize; member types and default initializers stay unchanged.
- The released
@briefstays, followed by core's doc. Docs writeopendal::Capability::xand bareXforErrorKind::X. - Output matches clang-format 18 (Google); run CI's Linux GCC/ASan, valgrind, and clang-18 async steps.
- Compose, restore, and deleter types stay out of public headers until their entry points exist.
- New fields change layout: declare a rebuild in
bindings/cpp/upgrade.mdandrelease_impact.pyformat for C++.
Design questions for new fields: options for the async API, Operator methods for compose, restore, and the deleter, and an opendal::Metadata input for if_not_changed.
Additional Context
Generating existing options is not release-impacting. New fields are source-compatible but change struct layout.
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