bestinslot-xyz / OPI

Open Protocol Indexer, OPI, is the best-in-slot open-source indexing client for meta-protocols on Bitcoin.
Apache License 2.0
202 stars 110 forks source link

Build Failure: Error while running OPI from version 0.4.1 or main #46

Open tcrst opened 2 months ago

tcrst commented 2 months ago

Hello, I'm encountering an issue while trying to run OPI from version 0.4.1 or the main branch. The problem arises during the build process when attempting to build ord. Specifically, I'm receiving the following error:

cd ord; cargo build --release; returns on 0.4.1 and main branches

   Compiling time v0.3.31
error[E0282]: type annotations needed for `Box<_>`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

For more information about this error, try `rustc --explain E0282`.
layer1g commented 2 months ago

Seems like an issue with the time package, try this for now:

cargo update -p time

It builds with time v0.3.36.

tcrst commented 1 month ago

Thanks, it fixed the build.