[Rust][Arrow] Declare the actual minimum supported Rust version

Aperta Adatta ai principianti
#910 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, rust

Direzione di ricerca

Inizia da rust/sdk/Cargo.toml e dalla riga dei requisiti del README, poi esamina i workflow CI esistenti per individuare i controlli della toolchain Rust. Imposta la versione minima dichiarata a 1.85, chiarisci dove sono documentati i requisiti delle singole funzionalità e aggiungi un cargo check con dipendenze bloccate per l’SDK con Rust 1.85. Il lavoro è completato quando il README e i metadati concordano e il controllo CI ha esito positivo.

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

Descrizione

SDK

Rust

Description

rust/sdk/Cargo.toml declares rust-version = "1.70", but the crate hasn't built on 1.70 for some time. The default feature set needs Rust 1.85 through its dependencies (for example getrandom 0.4). Optional features need more: avro needs 1.88 through apache-avro, and arrow-flight will need 1.88 with Arrow 60.

A wrong rust-version misleads users about which toolchains are supported, and it feeds Cargo's MSRV-aware dependency resolution, which then makes decisions based on a version the crate can't actually build on. Nothing in CI checks the value, which is how it drifted.

Proposed Solution
  • Set rust-version = "1.85", the minimum for the default feature set.
  • Keep documenting per-feature requirements in the README (it already does this for avro), and point the README's requirements line there.
  • Add a CI job that runs cargo check -p databricks-zerobus-ingest-sdk --locked on Rust 1.85, so the declared value stays accurate.

No build that works today stops working, since none of them can be on a toolchain older than 1.85. Raising the declared minimum is still usually treated as a breaking change, so this belongs in the next major release.

Additional Context

The upcoming Arrow 60 upgrade is itself a breaking change for the arrow-flight feature, so the next Rust release is a major one. Correcting the declared version in the same release avoids a separate major later.

Lingua principale
Rust
Stelle
95
Fork
36
Merge medio
4g 7h
PR unite (30g)
46

Preparare l'ambiente

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 databricks/zerobus-sdk

Tutte le issue di databricks/zerobus-sdk

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.