forked from Txio-labs/txio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_output.txt
More file actions
151 lines (136 loc) · 5.65 KB
/
Copy pathbuild_output.txt
File metadata and controls
151 lines (136 loc) · 5.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
warning: field `rpc_url` is never read
--> backend/api/src/services/sui_service.rs:13:5
|
10 | pub struct SuiService {
| ---------- field in this struct
...
13 | rpc_url: String,
| ^^^^^^^
|
= note: `SuiService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: `api` (lib) generated 1 warning
Compiling txio v0.1.0 (/home/kingvic/Documents/drips/txio/cli)
error[E0432]: unresolved import `tokio_stream`
--> cli/src/cli/handlers.rs:20:5
|
20 | use tokio_stream::StreamExt;
| ^^^^^^^^^^^^ use of unresolved module or unlinked crate `tokio_stream`
|
= help: if you wanted to use a crate named `tokio_stream`, use `cargo add tokio_stream` to add it to your `Cargo.toml`
warning: unused import: `api::model::user::User`
--> cli/src/cli/handlers.rs:13:5
|
13 | use api::model::user::User;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `Claims`
--> cli/src/cli/handlers.rs:17:39
|
17 | use api::utils::auth_jwt::{JwtHelper, Claims};
| ^^^^^^
warning: unused import: `anyhow`
--> cli/src/chains/solana.rs:5:22
|
5 | use anyhow::{Result, anyhow};
| ^^^^^^
warning: unused import: `json`
--> cli/src/chains/aptos.rs:4:18
|
4 | use serde_json::{json, Value};
| ^^^^
warning: unused import: `anyhow`
--> cli/src/chains/aptos.rs:5:22
|
5 | use anyhow::{Result, anyhow};
| ^^^^^^
warning: unused import: `traits::ChainAdapter`
--> cli/src/chains/mod.rs:9:9
|
9 | pub use traits::ChainAdapter;
| ^^^^^^^^^^^^^^^^^^^^
warning: unused import: `factory::ChainFactory`
--> cli/src/chains/mod.rs:10:9
|
10 | pub use factory::ChainFactory;
| ^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `next` found for struct `mongodb::Cursor<T>` in the current scope
--> cli/src/cli/handlers.rs:101:49
|
101 | while let Some(result) = cursor.next().await {
| ^^^^
|
::: /home/kingvic/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.32/src/stream/stream/mod.rs:273:8
|
273 | fn next(&mut self) -> Next<'_, Self>
| ---- the method is available for `mongodb::Cursor<mongodb::bson::Document>` here
|
= help: items from traits can only be used if the trait is in scope
help: trait `StreamExt` which provides `next` is implemented but not in scope; perhaps you want to import it
|
1 + use futures_util::stream::stream::StreamExt;
|
help: there is a method `try_next` with a similar name
|
101 | while let Some(result) = cursor.try_next().await {
| ++++
error[E0282]: type annotations needed
--> cli/src/cli/handlers.rs:102:25
|
102 | let doc = result?;
| ^^^
103 | count += 1;
104 | if let Ok(email) = doc.get_str("email") {
| --- type must be known at this point
|
help: consider giving `doc` an explicit type
|
102 | let doc: /* Type */ = result?;
| ++++++++++++
error[E0282]: type annotations needed
--> cli/src/cli/handlers.rs:105:44
|
105 | println!(" - {}", email.green());
| ^^^^^ cannot infer type
error[E0277]: the trait bound `LoginRequest: serde::Serialize` is not satisfied
--> cli/src/cli/handlers.rs:141:19
|
141 | .json(&login_request)
| ---- ^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `LoginRequest`
| |
| required by a bound introduced by this call
|
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `LoginRequest` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `Serialize`:
&'a T
&'a mut T
&RawArray
&RawDocument
()
(T,)
(T0, T1)
(T0, T1, T2)
and 356 others
note: required by a bound in `RequestBuilder::json`
--> /home/kingvic/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.11.27/src/async_impl/request.rs:438:20
|
438 | pub fn json<T: Serialize + ?Sized>(mut self, json: &T) -> RequestBuilder {
| ^^^^^^^^^ required by this bound in `RequestBuilder::json`
warning: unused variable: `name`
--> cli/src/chains/traits.rs:17:34
|
17 | async fn resolve_name(&self, name: &str) -> Result<Option<String>> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `address`
--> cli/src/chains/soroban.rs:66:33
|
66 | async fn get_balance(&self, address: &str) -> Result<Value> {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address`
Some errors have detailed explanations: E0277, E0282, E0432, E0599.
For more information about an error, try `rustc --explain E0277`.
warning: `txio` (bin "txio") generated 9 warnings
error: could not compile `txio` (bin "txio") due to 5 previous errors; 9 warnings emitted