new feature: expose operation options in the OCaml binding

Aperta
#9,326 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Read bindings/ocaml/src/operator.mli and bindings/ocaml/src/operator/mod.rs to understand current fixed signatures and the internal recursive option. Inspect dev/src/generate/ocaml.rs and the other bindings’ generators to identify how core options can be represented. The API shape and OCaml representations for timestamps, durations, metadata, and conditional reads must be agreed before implementation; done means generated option types and the agreed OCaml API are wired into the binding and validated by the relevant OCaml tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bindings/ocaml enhancement

Drafted with AI assistance (Claude Code, Claude Opus 5.5); the author is accountable for it.

Feature Description

Expose core's operation options in the OCaml binding and generate them from core. Part of #9320.

API shape to be agreed first; not planned immediately.

Problem and Solution

Once the shape is agreed, follow the two steps and rules in #9320. dev/src/generate/ocaml.rs already generates Capability and Metadata.

Open design questions

  • Optional labelled arguments change existing function types, breaking signature ascription and partial application; options probably need new functions (such as blocking_read_with) or an agreed record type.
  • How OCaml passes timestamps, durations, user_metadata, and a Metadata for if_not_changed.
Additional Context

#9319 is resolved for write-side and compose version conditions (#9234, #9329).

Are you willing to contribute to the development of this feature?
  • Yes, I am willing to contribute to the development of this feature.
Lingua principale
Rust
Stelle
5.5k
Fork
869
Merge medio
8h 2m
PR unite (30g)
862

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/opendal

Tutte le issue di apache/opendal

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.