-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patherror.log
More file actions
101 lines (93 loc) · 8.31 KB
/
error.log
File metadata and controls
101 lines (93 loc) · 8.31 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
cargo : Checking execution v0.1.0 (C:\Users\shiva\Downloads\hft_system\crates\execution)
At line:1 char:1
+ cargo check -p execution > error.log 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( Checking ex...ates\execution):String) [], Remo
teException
+ FullyQualifiedErrorId : NativeCommandError
error[E0432]: unresolved import `serde`
--> crates\execution\src\client.rs:7:5
|
7 | use serde::Deserialize;
| ^^^^^ help: a similar path exists: `chrono::serde`
error: cannot find attribute `serde` in this scope
--> crates\execution\src\client.rs:20:7
|
20 | #[serde(rename = "positionAmt")]
| ^^^^^
|
= note: `serde` is an attribute that can be used by the derive macros `Deserialize` and
`Serialize`, you might be missing a `derive` attribute
error: cannot find attribute `serde` in this scope
--> crates\execution\src\client.rs:22:7
|
22 | #[serde(rename = "entryPrice")]
| ^^^^^
|
= note: `serde` is an attribute that can be used by the derive macros `Deserialize` and
`Serialize`, you might be missing a `derive` attribute
error: cannot find attribute `serde` in this scope
--> crates\execution\src\client.rs:24:7
|
24 | #[serde(rename = "markPrice")]
| ^^^^^
|
= note: `serde` is an attribute that can be used by the derive macros `Deserialize` and
`Serialize`, you might be missing a `derive` attribute
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `tokio`
--> crates\execution\src\client.rs:212:17
|
212 | tokio::time::sleep(Duration::from_millis(100 * 2u64.pow(attempt as u32 -
1))).await;
| ^^^^^ use of unresolved module or unlinked crate `tokio`
|
= help: if you wanted to use a crate named `tokio`, use `cargo add tokio` to add it to your
`Cargo.toml`
warning: unused imports: `clock::DefaultClock` and `state::keyed::DefaultKeyedStateStore`
--> crates\execution\src\client.rs:5:49
|
5 | use governor::{DefaultDirectRateLimiter, Quota, state::keyed::DefaultKeyedStateStore,
clock::DefaultClock};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
error[E0277]: the trait bound `PositionRisk: serde::Deserialize<'de>` is not satisfied
--> crates\execution\src\client.rs:142:48
|
142 | let positions: Vec<PositionRisk> = serde_json::from_str(&text)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied
trait bound
|
help: the trait `serde_core::de::Deserialize<'_>` is not implemented for `PositionRisk`
--> crates\execution\src\client.rs:18:1
|
18 | pub struct PositionRisk {
| ^^^^^^^^^^^^^^^^^^^^^^^
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your
`PositionRisk` type
= note: for types from other crates check whether the crate offers a `serde` feature flag
= help: the following other types implement trait `serde_core::de::Deserialize<'de>`:
&'a Path
&'a [u8]
&'a str
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
and 156 others
= note: required for `Vec<PositionRisk>` to implement `serde_core::de::Deserialize<'_>`
note: required by a bound in `serde_json::from_str`
--> C:\Users\shiva\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\serde_json-1.0.145\s
rc\de.rs:2699:8
|
2697 | pub fn from_str<'a, T>(s: &'a str) -> Result<T>
| -------- required by a bound in this function
2698 | where
2699 | T: de::Deserialize<'a>,
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_str`
Some errors have detailed explanations: E0277, E0432, E0433.
For more information about an error, try `rustc --explain E0277`.
warning: `execution` (lib) generated 1 warning
error: could not compile `execution` (lib) due to 6 previous errors; 1 warning emitted