async_trait -> async functions in traits

Aperta
#447 1 commento 0 reazioni 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
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
postgresql, rust
Ambito
backend, databases

Direzione di ricerca

Start with the QueryParser trait at pgwire::api::stmt::QueryParser and check how it currently uses boxed futures and async_trait. Then search the crate for other traits with the same pattern and assess whether Rust's async functions in traits can replace it; done means the applicable traits no longer require boxed futures. The issue does not name tests, so identify the relevant coverage while reading the implementations.

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

Descrizione

Is it possible to allow users to avoid boxed futures by using the async fn in traits feature?

First such trait I ran into which this would apply to is called QueryParser (pgwire::api::stmt::QueryParser), but there are many in this crate.

Lingua principale
Rust
Stelle
805
Fork
88
Merge medio
1g 7h
PR unite (30g)
10

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 sunng87/pgwire

Tutte le issue di sunng87/pgwire

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.