Make it possible to disable compression algorithm feature flags inside the parquet dependency without disabling parquet.
- Lingua principale
- Rust
- Stelle
- 9.3k
- Fork
- 2.4k
- Merge medio
- 3g 11h
- PR unite (30g)
- 362
Descrizione
### Is your feature request related to a problem or challenge?
Hi, I'm trying to reduce the size of my compiled binary. Using cargo bloat, it appears that a large portion of the size (around 10%) is coming from the dependency on the brotli compression algorithm. I don't plan on compressing or decompressing anything using brotli, so I'd like to disable this dependency. Ideally, I would only depend on zstd, since that is the only algorithm I plan to use.
Currently, I have `default-features = false` and `features = ["parquet"]`. This is enough to pull in all of the compression algorithms, since the parquet has default features enabled.
I'm less familiar with Rust build systems, so my analysis of the situation might be incorrect.
### Describe the solution you'd like
Could we do something similar to #10058, where top level features are exposed by the datafusion crate, and this toggles on or off the features inside the parquet crate?
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando le dichiarazioni delle feature di Cargo per DataFusion e la sua dipendenza parquet, usando cargo tree per verificare quali feature di compressione sono abilitate. Il lavoro è completato quando parquet rimane disponibile, brotli può essere disabilitato e zstd può rimanere abilitato, con il grafo delle dipendenze risultante che conferma l'assenza dell'algoritmo inutilizzato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- build-system
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100