Skip to content

Failed to parse manifest [checker-btc] #42

@asherp

Description

@asherp

I'm unable to build checker-btc due to an issue with priority-queue. May be related to electrum-client

hosh % docker compose build checker-btc
[+] Building 6.2s (13/19)                                                                                                                                                 docker:desktop-linux
 => [checker-btc internal] load build definition from Dockerfile                                                                                                                          0.0s
 => => transferring dockerfile: 1.17kB                                                                                                                                                    0.0s
 => [checker-btc internal] load metadata for docker.io/library/rust:1.82-slim-bullseye                                                                                                    0.7s
 => [checker-btc internal] load metadata for docker.io/library/debian:bullseye-slim                                                                                                       0.7s
 => [checker-btc auth] library/debian:pull token for registry-1.docker.io                                                                                                                 0.0s
 => [checker-btc auth] library/rust:pull token for registry-1.docker.io                                                                                                                   0.0s
 => [checker-btc internal] load .dockerignore                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                           0.0s
 => [checker-btc builder 1/7] FROM docker.io/library/rust:1.82-slim-bullseye@sha256:426a0b287a98f7410fb4d84e5401d6ea65b75689ba10954dc73fc1fcee1ae578                                      0.0s
 => => resolve docker.io/library/rust:1.82-slim-bullseye@sha256:426a0b287a98f7410fb4d84e5401d6ea65b75689ba10954dc73fc1fcee1ae578                                                          0.0s
 => [checker-btc stage-1 1/5] FROM docker.io/library/debian:bullseye-slim@sha256:33b7c2e071c29e618182ec872c471f39d2dde3d8904d95f5b7a61acf3a592e7b                                         0.0s
 => => resolve docker.io/library/debian:bullseye-slim@sha256:33b7c2e071c29e618182ec872c471f39d2dde3d8904d95f5b7a61acf3a592e7b                                                             0.0s
 => [checker-btc internal] load build context                                                                                                                                             0.0s
 => => transferring context: 595B                                                                                                                                                         0.0s
 => CACHED [checker-btc builder 2/7] WORKDIR /usr/src/app                                                                                                                                 0.0s
 => CACHED [checker-btc builder 3/7] RUN apt-get update && apt-get install -y     pkg-config     libssl-dev     git     make     && rm -rf /var/lib/apt/lists/*                           0.0s
 => CACHED [checker-btc builder 4/7] COPY Cargo.toml Cargo.lock ./                                                                                                                        0.0s
 => ERROR [checker-btc builder 5/7] RUN mkdir -p src &&     echo "fn main() {println!("dummy");}" > src/main.rs &&     cargo build --release &&     rm -rf src target/release/btc-backen  5.4s
------                                                                                                                                                                                         
 > [checker-btc builder 5/7] RUN mkdir -p src &&     echo "fn main() {println!("dummy");}" > src/main.rs &&     cargo build --release &&     rm -rf src target/release/btc-backend*:           
0.503     Updating crates.io index                                                                                                                                                             
3.599  Downloading crates ...                                                                                                                                                                  
...
5.134   Downloaded priority-queue v2.2.2
5.184 error: failed to parse manifest at `/usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/priority-queue-2.2.2/Cargo.toml`
5.184 
5.184 Caused by:
5.184   feature `edition2024` is required
5.184 
5.184   The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.82.0 (8f40fc59f 2024-08-21)).
5.184   Consider trying a newer version of Cargo (this may require the nightly release).
5.184   See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.
------
failed to solve: process "/bin/sh -c mkdir -p src &&     echo \"fn main() {println!(\\\"dummy\\\");}\" > src/main.rs &&     cargo build --release &&     rm -rf src target/release/btc-backend*" did not complete successfully: exit code: 101
------

This also fails to build on host

(base) btc % cargo build
 
   Compiling btc-backend v0.1.0 (/Users/asherp/git/fathomx/projects/hosh/checkers/btc)
error[E0432]: unresolved import `tracing`
 --> src/main.rs:6:5
  |
6 | use tracing::{info, error, Level};
  |     ^^^^^^^ use of undeclared crate or module `tracing`

error[E0432]: unresolved import `tracing_subscriber`
 --> src/main.rs:7:26
  |
7 | use tracing_subscriber::{self, EnvFilter};
  |                          ^^^^ no external crate `tracing_subscriber`

error[E0432]: unresolved import `tracing`
  --> src/routes/electrum/query.rs:10:5
   |
10 | use tracing::{debug, error, info};
   |     ^^^^^^^ use of undeclared crate or module `tracing`

error[E0432]: unresolved import `tracing`
  --> src/utils.rs:13:5
   |
13 | use tracing::{debug, error, info, warn};
   |     ^^^^^^^ use of undeclared crate or module `tracing`

error[E0432]: unresolved import `async_nats`
 --> src/worker/mod.rs:1:5
  |
1 | use async_nats::Client as NatsClient;
  |     ^^^^^^^^^^ use of undeclared crate or module `async_nats`

error[E0433]: failed to resolve: use of undeclared crate or module `futures_util`
 --> src/worker/mod.rs:5:5
  |
5 | use futures_util::stream::StreamExt;
  |     ^^^^^^^^^^^^ use of undeclared crate or module `futures_util`

error[E0432]: unresolved import `redis`
 --> src/worker/mod.rs:2:5
  |
2 | use redis::Client as RedisClient;
  |     ^^^^^ use of undeclared crate or module `redis`

error[E0432]: unresolved import `tracing`
 --> src/worker/mod.rs:8:5
  |
8 | use tracing::{debug, error, info};
  |     ^^^^^^^ use of undeclared crate or module `tracing`

error[E0433]: failed to resolve: use of undeclared crate or module `futures_util`
   --> src/worker/mod.rs:225:31
    |
225 |             let mut handles = futures_util::stream::FuturesUnordered::new();
    |                               ^^^^^^^^^^^^ use of undeclared crate or module `futures_util`

error[E0433]: failed to resolve: use of undeclared crate or module `redis`
  --> src/worker/mod.rs:69:21
   |
69 |         let redis = redis::Client::open(format!("redis://{}:{}", redis_host, redis_port))?;
   |                     ^^^^^ use of undeclared crate or module `redis`
   |
help: consider importing one of these structs
   |
1  + use electrum_client::Client;
   |
1  + use hyper::Client;
   |
1  + use reqwest::Client;
   |
help: if you import `Client`, refer to it directly
   |
69 -         let redis = redis::Client::open(format!("redis://{}:{}", redis_host, redis_port))?;
69 +         let redis = Client::open(format!("redis://{}:{}", redis_host, redis_port))?;
   |

error[E0433]: failed to resolve: use of undeclared crate or module `async_nats`
  --> src/worker/mod.rs:68:20
   |
68 |         let nats = async_nats::connect(&nats_url).await?;
   |                    ^^^^^^^^^^ use of undeclared crate or module `async_nats`

error[E0433]: failed to resolve: use of undeclared crate or module `redis`
   --> src/worker/mod.rs:191:29
    |
191 |             if let Err(e) = redis::cmd("SET")
    |                             ^^^^^ use of undeclared crate or module `redis`

error[E0433]: failed to resolve: use of undeclared crate or module `async_nats`
   --> src/worker/mod.rs:143:48
    |
143 |     async fn process_check_request(&self, msg: async_nats::Message) {
    |                                                ^^^^^^^^^^ use of undeclared crate or module `async_nats`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `btc-backend` (bin "btc-backend") due to 13 previous errors

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions