paradigmxyz/etop

Bug: etop-format fails to compile

Opened this issue · 0 comments

When compiling etop-format is failing to compile, I get the following issue:

Compiling etop-format v0.1.1 (/home/matias/etop/crates/etop-format)
warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
   --> crates/etop-format/src/number_format/interface.rs:143:43
    |
143 |             let datetime = NaiveDateTime::from_timestamp_opt(input_f64 as i64, 0)
    |                                           ^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `etop-format` (lib) generated 1 warning
   Compiling polars-time v0.36.2
   Compiling polars-io v0.36.2
   Compiling cryo_cli v0.3.2
   Compiling etop-core v0.1.1 (/home/matias/etop/crates/etop-core)
error[E0609]: no field `fetcher` on type `Arc<Source>`
  --> crates/etop-core/src/types/query.rs:44:57
   |
44 |         let query = cryo_cli::parse_query(&args, source.fetcher.clone())
   |                                                         ^^^^^^^ unknown field
   |
   = note: available fields are: `provider`, `chain_id`, `inner_request_size`, `max_concurrent_chunks`, `rpc_url` ... and 3 others

error[E0308]: mismatched types
   --> crates/etop-core/src/types/query.rs:48:9
    |
48  |         cryo_freeze::collect(query, source.clone()).await.map_err(EtopError::CryoError)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `DataFrame`, found a different `DataFrame`
    |
    = note: `DataFrame` and `DataFrame` have similar names, but are actually distinct types
note: `DataFrame` is defined in crate `polars_core`
   --> /home/matias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.36.2/src/frame/mod.rs:137:1
    |
137 | pub struct DataFrame {
    | ^^^^^^^^^^^^^^^^^^^^
note: `DataFrame` is defined in crate `polars_core`
   --> /home/matias/.cargo/registry/src/index.crates.io-6f17d22bba15001f/polars-core-0.35.4/src/frame/mod.rs:140:1
    |
140 | pub struct DataFrame {
    | ^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `polars_core` are being used?

Some errors have detailed explanations: E0308, E0609.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `etop-core` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `etop-cli v0.1.1 (/home/matias/etop/crates/etop-cli)`, intermediate artifacts can be found at `/home/matias/etop/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.