Zondax / namadexer

Namada indexer
39 stars 57 forks source link

Some errors have detailed explanations: E0392, E0412, E0432, E0433, E0583 #165

Closed ismsahib closed 5 months ago

ismsahib commented 6 months ago
I'm trying to install indexer according to the instructions from the documentation. I get these errors after the make run_server command. Before this, I already installed indexer and everything was fine. The errors themselves: error[E0583]: file not found for modulepostgres` --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/lib.rs:92:1 92 pub mod postgres; ^^^^^^^^^^^^^^^^^

= help: to create the module postgres, create file "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/postgres.rs" or "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/postgres/mod.rs" = note: if there is a mod postgres elsewhere in the crate already, import it with use crate::... instead

Compiling itertools v0.11.0 Compiling hkdf v0.12.4 error[E0432]: unresolved import crate::postgres::Postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:5:5 5 use crate::postgres::Postgres; ^^^^^^^^^^^^^^^^^^^^^^^^^ no Postgres in postgres

help: consider importing one of these items instead | 5 | use crate::any::AnyConnectionKind::Postgres; | ~~~~~~~~~~~ 5 | use crate::any::AnyKind::Postgres; | ~~~~~~~~~ 5 | use crate::any::arguments::AnyArgumentBufferKind::Postgres; | ~~~~~~~~~~~~~~ 5 | use crate::any::column::AnyColumnKind::Postgres; | ~~~~~~~~~~~ and 5 other candidates

error[E0432]: unresolved import crate::postgres::Postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/encode.rs:5:5 5 use crate::postgres::Postgres; ^^^^^^^^^^^^^^^^^^^^^^^^^ no Postgres in postgres

help: consider importing one of these items instead | 5 | use crate::any::AnyConnectionKind::Postgres; | ~~~~~~~~~~~ 5 | use crate::any::AnyKind::Postgres; | ~~~~~~~~~ 5 | use crate::any::arguments::AnyArgumentBufferKind::Postgres; | ~~~~~~~~~~~~~~ 5 | use crate::any::column::AnyColumnKind::Postgres; | ~~~~~~~~~~~ and 5 other candidates

error[E0432]: unresolved imports crate::postgres::PgColumn, crate::postgres::PgRow, crate::postgres::PgStatement --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/column.rs:5:23 5 use crate::postgres::{PgColumn, PgRow, PgStatement}; ^^^^^^^^ ^^^^^ ^^^^^^^^^^^ no PgStatement in postgres
no PgRow in postgres
no PgColumn in postgres

error[E0432]: unresolved import crate::postgres::PgConnectOptions --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/options.rs:10:5 | 10 | use crate::postgres::PgConnectOptions; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no PgConnectOptions in postgres

error[E0432]: unresolved import crate::postgres::PgRow --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/row.rs:13:5 | 13 | use crate::postgres::PgRow; | ^^^^^^^^^^^^^^^^^^^^^^ no PgRow in postgres

error[E0432]: unresolved import crate::postgres::PgTypeInfo --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type_info.rs:6:5 | 6 | use crate::postgres::PgTypeInfo; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no PgTypeInfo in postgres

error[E0432]: unresolved imports crate::postgres::PgValue, crate::postgres::PgValueRef --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/value.rs:13:23 13 use crate::postgres::{PgValue, PgValueRef}; ^^^^^^^ ^^^^^^^^^^ no PgValueRef in postgres
no PgValue in postgres

Compiling md-5 v0.10.6 error[E0433]: failed to resolve: could not find PgConnection in postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/connection/establish.rs:19:34 | 19 | crate::postgres::PgConnection::connect_with(options) | ^^^^^^^^^^^^ could not find PgConnection in postgres

Compiling ordered-float v2.10.1 error[E0433]: failed to resolve: could not find Postgres in postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/migrate.rs:15:55 15 AnyKind::Postgres => crate::postgres::Postgres::create_database(url).await, ^^^^^^^^ could not find Postgres in postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 15 | AnyKind::Postgres => crate::any::AnyConnectionKind(url).await, | ~~~~~~~~~ 15 | AnyKind::Postgres => crate::any::AnyKind(url).await, | ~~~~~~~ 15 | AnyKind::Postgres => crate::any::arguments::AnyArgumentBufferKind(url).await, | ~~~~~~~~~~~~ 15 | AnyKind::Postgres => crate::any::column::AnyColumnKind(url).await, | ~~~~~~~~~ and 5 other candidates

error[E0433]: failed to resolve: could not find Postgres in postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/migrate.rs:33:55 33 AnyKind::Postgres => crate::postgres::Postgres::database_exists(url).await, ^^^^^^^^ could not find Postgres in postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 33 | AnyKind::Postgres => crate::any::AnyConnectionKind(url).await, | ~~~~~~~~~ 33 | AnyKind::Postgres => crate::any::AnyKind(url).await, | ~~~~~~~ 33 | AnyKind::Postgres => crate::any::arguments::AnyArgumentBufferKind(url).await, | ~~~~~~~~~~~~ 33 | AnyKind::Postgres => crate::any::column::AnyColumnKind(url).await, | ~~~~~~~~~ and 5 other candidates

error[E0433]: failed to resolve: could not find Postgres in postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/migrate.rs:51:55 51 AnyKind::Postgres => crate::postgres::Postgres::drop_database(url).await, ^^^^^^^^ could not find Postgres in postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 51 | AnyKind::Postgres => crate::any::AnyConnectionKind(url).await, | ~~~~~~~~~ 51 | AnyKind::Postgres => crate::any::AnyKind(url).await, | ~~~~~~~ 51 | AnyKind::Postgres => crate::any::arguments::AnyArgumentBufferKind(url).await, | ~~~~~~~~~~~~ 51 | AnyKind::Postgres => crate::any::column::AnyColumnKind(url).await, | ~~~~~~~~~ and 5 other candidates

Compiling thread_local v1.1.7 error[E0412]: cannot find type PgArguments in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/arguments.rs:31:26 | 31 | crate::postgres::PgArguments, | ^^^^^^^^^^^ not found in crate::postgres

error[E0412]: cannot find type PgArguments in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/arguments.rs:116:54 | 116 | impl<'q> From<AnyArguments<'q>> for crate::postgres::PgArguments { | ^^^^^^^^^^^ not found in crate::postgres

error[E0412]: cannot find type PgConnection in module postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/connection/mod.rs:40:24 | 40 | Postgres(postgres::PgConnection), | ^^^^^^^^^^^^ not found in postgres

error[E0412]: cannot find type PgConnection in module postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/connection/mod.rs:212:21 | 212 | impl From for AnyConnection { | ^^^^^^^^^^^^ not found in postgres

error[E0412]: cannot find type PgConnection in module postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/connection/mod.rs:213:29 | 213 | fn from(conn: postgres::PgConnection) -> Self { | ^^^^^^^^^^^^ not found in postgres

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/transaction.rs:18:35 18 ::TransactionManager::begin(conn) ^^^^^^^^ not found in crate::postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 18 | ::TransactionManager::begin(conn) | ~~~~~~~~~ 18 | ::TransactionManager::begin(conn) | ~~~~~~~ 18 | ::TransactionManager::begin(conn) | ~~~~~~~~~~~~ 18 | ::TransactionManager::begin(conn) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/transaction.rs:42:35 42 ::TransactionManager::commit(conn) ^^^^^^^^ not found in crate::postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 42 | ::TransactionManager::commit(conn) | ~~~~~~~~~ 42 | ::TransactionManager::commit(conn) | ~~~~~~~ 42 | ::TransactionManager::commit(conn) | ~~~~~~~~~~~~ 42 | ::TransactionManager::commit(conn) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/transaction.rs:66:35 66 ::TransactionManager::rollback(conn) ^^^^^^^^ not found in crate::postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 66 | ::TransactionManager::rollback(conn) | ~~~~~~~~~ 66 | ::TransactionManager::rollback(conn) | ~~~~~~~ 66 | ::TransactionManager::rollback(conn) | ~~~~~~~~~~~~ 66 | ::TransactionManager::rollback(conn) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/transaction.rs:90:35 90 ::TransactionManager::start_rollback(conn) ^^^^^^^^ not found in crate::postgres

help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 90 | ::TransactionManager::start_rollback(conn) | ~~~~~~~~~ 90 | ::TransactionManager::start_rollback(conn) | ~~~~~~~ 90 | ::TransactionManager::start_rollback(conn) | ~~~~~~~~~~~~ 90 | ::TransactionManager::start_rollback(conn) | ~~~~~~~~~ and 5 other candidates

Compiling integer-encoding v3.0.4 error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:23:1 23 impl_any_type!(bool); -------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:25:1 25 impl_any_type!(i16); ------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:26:1 26 impl_any_type!(i32); ------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:27:1 27 impl_any_type!(i64); ------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:29:1 29 impl_any_type!(f32); ------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:30:1 30 impl_any_type!(f64); ------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:32:1 32 impl_any_type!(str); ------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:33:1 33 impl_any_type!(String); ---------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:51:1 51 impl_any_decode!(bool); ---------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:53:1 53 impl_any_decode!(i16); --------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:54:1 54 impl_any_decode!(i32); --------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:55:1 55 impl_any_decode!(i64); --------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:57:1 57 impl_any_decode!(f32); --------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:58:1 58 impl_any_decode!(f64); --------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:60:1 60 impl_any_decode!(&'r str); ------------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:61:1 61 impl_any_decode!(String); ------------------------ in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:69:1 69 impl_any_type!([u8]); -------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/type.rs:19:69 19 <$ty as crate::types::Type>::compatible(&ty) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:74:1 74 impl_any_type!(Vec); ----------------------- in this macro invocation

= note: this error originates in the macro impl_any_type (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~~~~ 19 | <$ty as crate::types::Type>::compatible(&ty) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:93:1 93 impl_any_decode!(&'r [u8]); -------------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

error[E0412]: cannot find type Postgres in module crate::postgres --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/decode.rs:45:76 45 <$ty as crate::decode::Decode<'r, crate::postgres::Postgres>>::decode(value) ^^^^^^^^ not found in crate::postgres
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/types.rs:98:1 98 impl_any_decode!(Vec); ------------------------- in this macro invocation

= note: this error originates in the macro impl_any_decode (in Nightly builds, run with -Z macro-backtrace for more info) help: there is an enum variant crate::any::AnyConnectionKind::Postgres and 9 others; try using the variant's enum | 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyConnectionKind>>::decode(value) | ~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::AnyKind>>::decode(value) | ~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::arguments::AnyArgumentBufferKind>>::decode(value) | ~~~~~~~~~~~~ 45 | <$ty as crate::decode::Decode<'r, crate::any::column::AnyColumnKind>>::decode(value) | ~~~~~~~~~ and 5 other candidates

Compiling rustc-hash v1.1.0 Compiling base58 v0.1.0 Compiling ct-codecs v1.1.1 Compiling clap_lex v0.6.0 Compiling hmac-sha512 v0.1.9 Compiling memzero v0.1.0 Compiling tiny-hderive v0.3.0 Compiling slip10_ed25519 v0.1.3 error[E0392]: parameter 'r is never used --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/any/value.rs:43:24 43 pub struct AnyValueRef<'r> { ^^ unused parameter

= help: consider removing 'r, referring to it in a field, or using a marker such as PhantomData `

rllola commented 6 months ago

Hi @ismsahib

What version of the indexer did you use ? It looks like there is a problem with the postgres dependency. Any chance you change something in the code ? Also what is your system ?

Maybe try with the latest main branch and let me know if it keeps happening.