Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows compilation error #51

Open
magick93 opened this issue Dec 4, 2024 · 0 comments
Open

Windows compilation error #51

magick93 opened this issue Dec 4, 2024 · 0 comments

Comments

@magick93
Copy link
Owner

magick93 commented Dec 4, 2024

Compiling http_metrics v0.1.0 (D:\a\anchor\anchor\anchor\http_metrics)
   Compiling anchor v0.1.0 (D:\a\anchor\anchor\anchor)
error[E0432]: unresolved import `tokio::signal::unix`
  --> anchor\src\environment.rs:14:20
   |
14 |     tokio::signal::unix::{signal, Signal, SignalKind},
   |                    ^^^^ could not find `unix` in `signal`
   |
note: found an item that was configured out
  --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.40.0\src\signal\mod.rs:63:9
   |
63 | pub mod unix;
   |         ^^^^
note: the item is gated here
  --> C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tokio-1.40.0\src\signal\unix.rs:6:1
   |
6  | #![cfg(unix)]
   | ^^^^^^^^^^^^^

warning: unused import: `future`
 --> anchor\src\environment.rs:5:15
  |
5 | use futures::{future, StreamExt};
  |               ^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `info`
 --> anchor\src\environment.rs:9:22
  |
9 | use tracing::{error, info, warn};
  |                      ^^^^

warning: unused imports: `futures::Future`, `pin::Pin`, `task::Context`, and `task::Poll`
  --> anchor\src\environment.rs:12:5
   |
12 |     futures::Future,
   |     ^^^^^^^^^^^^^^^
13 |     std::{pin::Pin, task::Context, task::Poll},
   |           ^^^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^^

error[E0599]: no method named `block_until_shutdown_requested` found for struct `Environment` in the current scope
  --> anchor\src/main.rs:55:45
   |
55 |     let shutdown_reason = match environment.block_until_shutdown_requested() {
   |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Environment`
   |
  ::: anchor\src\environment.rs:20:1
   |
20 | pub struct Environment {
   | ---------------------- method `block_until_shutdown_requested` not found for this struct

warning: unused import: `StreamExt`
 --> anchor\src\environment.rs:5:23
  |
5 | use futures::{future, StreamExt};
  |                       ^^^^^^^^^

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
warning: `anchor` (bin "anchor") generated 4 warnings
error: could not compile `anchor` (bin "anchor") due to 2 previous errors; 4 warnings emitted
error: failed to compile `anchor v0.1.0 (D:\a\anchor\anchor\anchor)`, intermediate artifacts can be found at `D:\a\anchor\anchor\target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant