Checking solana_rust_bot v0.1.0 (C:\solana_rust_bot)
error[E0432]: unresolved import `futures`
  --> src/main.rs:14:5
   |
14 | use futures::StreamExt;
   |     ^^^^^^^ use of undeclared crate or module `futures`

error: unused import: `sync::Arc`
 --> src/main.rs:9:41
  |
9 | use std::{str::FromStr, time::Duration, sync::Arc};
  |                                         ^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`

error[E0599]: no method named `split` found for struct `tokio_tungstenite::WebSocketStream` in the current scope
    --> src/main.rs:109:39
     |
109  |     let (mut write, read) = ws_stream.split();
     |                                       ^^^^^ method not found in `WebSocketStream<MaybeTlsStream<TcpStream>>`
     |
    ::: C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-util-0.3.31\src\stream\stream\mod.rs:1582:8
     |
1582 |     fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
     |        ----- the method is available for `tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tokio::net::TcpStream>>` here 
     |
     = help: items from traits can only be used if the trait is in scope
help: trait `StreamExt` which provides `split` is implemented but not in scope; perhaps you want to import it
     |
1    + use futures_util::stream::stream::StreamExt;
     |

error[E0061]: this function takes 3 arguments but 4 arguments were supplied
   --> src/main.rs:147:23
    |
147 |     let instruction = Instruction::new_with_borsh(
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
154 |         trade,
    |         ----- unexpected argument #4 of type `TradeInstruction`
    |
note: associated function defined here
   --> C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\solana-program-1.18.26\src\instruction.rs:389:12
    |
389 |     pub fn new_with_borsh<T: BorshSerialize>(
    |            ^^^^^^^^^^^^^^
help: remove the extra argument
    |
153 -         ],
154 -         trade,
153 +         ],
    |

Some errors have detailed explanations: E0061, E0432, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `solana_rust_bot` (bin "solana_rust_bot") due to 4 previous errors
PS C:\solana_rust_bot> cargo clippy -- -D warnings
    Checking solana_rust_bot v0.1.0 (C:\solana_rust_bot)
error[E0432]: unresolved import `futures`
  --> src/main.rs:14:5
   |
14 | use futures::StreamExt;
   |     ^^^^^^^ use of undeclared crate or module `futures`

error: unused import: `sync::Arc`
 --> src/main.rs:9:41
  |
9 | use std::{str::FromStr, time::Duration, sync::Arc};
  |                                         ^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`

error[E0599]: no method named `split` found for struct `tokio_tungstenite::WebSocketStream` in the current scope
    --> src/main.rs:109:39
     |
109  |     let (mut write, read) = ws_stream.split();
     |                                       ^^^^^ method not found in `WebSocketStream<MaybeTlsStream<TcpStream>>`
     |
    ::: C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-util-0.3.31\src\stream\stream\mod.rs:1582:8
     |
1582 |     fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
     |        ----- the method is available for `tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tokio::net::TcpStream>>` here 
     |
     = help: items from traits can only be used if the trait is in scope
help: trait `StreamExt` which provides `split` is implemented but not in scope; perhaps you want to import it
     |
1    + use futures_util::stream::stream::StreamExt;
     |

error[E0061]: this function takes 3 arguments but 4 arguments were supplied
   --> src/main.rs:147:23
    |
147 |     let instruction = Instruction::new_with_borsh(
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
154 |         trade,
    |         ----- unexpected argument #4 of type `TradeInstruction`
    |
note: associated function defined here
   --> C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\solana-program-1.18.26\src\instruction.rs:389:12
    |
389 |     pub fn new_with_borsh<T: BorshSerialize>(
    |            ^^^^^^^^^^^^^^
help: remove the extra argument
    |
153 -         ],
154 -         trade,
153 +         ],
    |

Some errors have detailed explanations: E0061, E0432, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `solana_rust_bot` (bin "solana_rust_bot") due to 4 previous errors
PS C:\solana_rust_bot> cargo build --release --jobs 13
   Compiling solana_rust_bot v0.1.0 (C:\solana_rust_bot)
error[E0432]: unresolved import `futures`
  --> src/main.rs:14:5
   |
14 | use futures::StreamExt;
   |     ^^^^^^^ use of undeclared crate or module `futures`

warning: unused import: `sync::Arc`
 --> src/main.rs:9:41
  |
9 | use std::{str::FromStr, time::Duration, sync::Arc};
  |                                         ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0599]: no method named `split` found for struct `WebSocketStream` in the current scope
    --> src/main.rs:109:39
     |
109  |     let (mut write, read) = ws_stream.split();
     |                                       ^^^^^ method not found in `WebSocketStream<MaybeTlsStream<TcpStream>>`
     |
    ::: C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-util-0.3.31\src\stream\stream\mod.rs:1582:8
     |
1582 |     fn split<Item>(self) -> (SplitSink<Self, Item>, SplitStream<Self>)
     |        ----- the method is available for `WebSocketStream<tokio_tungstenite::MaybeTlsStream<tokio::net::TcpStream>>` here
     |
     = help: items from traits can only be used if the trait is in scope
help: trait `StreamExt` which provides `split` is implemented but not in scope; perhaps you want to import it
     |
1    + use futures_util::stream::stream::StreamExt;
     |

error[E0061]: this function takes 3 arguments but 4 arguments were supplied
   --> src/main.rs:147:23
    |
147 |     let instruction = Instruction::new_with_borsh(
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
154 |         trade,
    |         ----- unexpected argument #4 of type `TradeInstruction`
    |
note: associated function defined here
   --> C:\Users\Orsen\.cargo\registry\src\index.crates.io-6f17d22bba15001f\solana-program-1.18.26\src\instruction.rs:389:12
    |
389 |     pub fn new_with_borsh<T: BorshSerialize>(
    |            ^^^^^^^^^^^^^^
help: remove the extra argument
    |
153 -         ],
154 -         trade,
153 +         ],
    |

Some errors have detailed explanations: E0061, E0432, E0599.
For more information about an error, try `rustc --explain E0061`.
warning: `solana_rust_bot` (bin "solana_rust_bot") generated 1 warning
error: could not compile `solana_rust_bot` (bin "solana_rust_bot") due to 3 previous errors; 1 warning emitted