You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: