connectrpc-health forces connectrpc default features (zstd, gzip, json)

Aperta
#337 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@AhmedElBanna80 ci sta già lavorando.

Dal 16/10/2026.

  • #338 di @AhmedElBanna80 — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reading connectrpc-health/Cargo.toml and connectrpc-reflection/Cargo.toml, where the issue identifies the dependency declarations. Verify the feature behavior with the provided cargo tree -e normal -i zstd reproduction, then run cargo test -p connectrpc-health with defaults off as described. Done when those dependencies no longer force connectrpc's default features.

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

Descrizione

connectrpc-health/Cargo.toml depends on connectrpc without default-features = false:

connectrpc = { path = "../connectrpc", version = "0.9", features = ["server"] }

Because of that, connectrpc's default features (gzip, zstd, json) are always enabled for anyone who uses connectrpc-health, even if they depend on connectrpc with default-features = false. Cargo unions features, so the downstream crate can't turn them off.

Reproduce with a crate that depends on connectrpc (default-features = false, features = ["server"]) and connectrpc-health (default-features = false):

$ cargo tree -e normal -i zstd
zstd v0.13.3
└── connectrpc v0.9.0
    └── connectrpc-health v0.9.0

The health crate doesn't appear to need any of them: building and testing it with connectrpc's defaults off works (cargo test -p connectrpc-health, with and without --features client, and --no-default-features). connectrpc-reflection/Cargo.toml declares its dependency the same way.

Proposed fix: add default-features = false to that line (and the reflection one). I have a PR ready.

Lingua principale
Rust
Stelle
542
Fork
74
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 connectrpc/connect-rust

Tutte le issue di connectrpc/connect-rust

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.