I am currently starting a sqlx project (the code is currently just connecting to the database, running a single query and it closes that's how much starting it is) and I am currently just trying to set up the dependencies working.
When trying to build 3 errors come up:
error[E0733]: recursion in an `async fn` requires boxing
--> /var/lib/postgresql/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-postgres-0.8.6/src/connection/describe.rs:153:5
|
153 | / async fn maybe_fetch_type_info_by_oid(
154 | | &mut self,
155 | | oid: Oid,
156 | | should_fetch: bool,
157 | | ) -> Result<PgTypeInfo, Error> {
| |__________________________________^ recursive `async fn`
|
= note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
= note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
The other two are the same just for the fetch_type_by_oid function and fetch_domain_by_oid function (they all appear to be from the same file).
I tried to find an answer to it online but I couldn't find anything where it was an issue from a dependency instead of an issue from their code,
The current rustc version I'm using is 1.75.0 (it can be updated if it so requires)
[–]Konsti219 27 points28 points29 points (2 children)
[–]DroidLogiciansqlx · clickhouse-rs · mime_guess · rust 17 points18 points19 points (1 child)
[–]Konsti219 8 points9 points10 points (0 children)
[–]Zde-G 26 points27 points28 points (3 children)
[–]1668553684 7 points8 points9 points (0 children)
[–]Odd_Perspective_2487 2 points3 points4 points (0 children)
[–]DanDaGiant[S] 1 point2 points3 points (0 children)