-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck_errors_5.txt
More file actions
696 lines (605 loc) · 24.8 KB
/
Copy pathcheck_errors_5.txt
File metadata and controls
696 lines (605 loc) · 24.8 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_wasm\Cargo.toml
workspace: D:\ZKS Protocol_Research\ZKS Protocol\Cargo.toml
Checking zks_wire v0.1.0 (D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_wire)
warning: unused import: `debug`
--> crates\zks_wire\src\faisal_swarm\onion_stream.rs:13:15
|
13 | use tracing::{debug, error};
| ^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `std::collections::HashMap`
--> crates\zks_wire\src\swarm_controller.rs:6:5
|
6 | use std::collections::HashMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `warn`
--> crates\zks_wire\src\swarm_controller.rs:9:35
|
9 | use tracing::{debug, error, info, warn};
| ^^^^
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:417:17
|
417 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:433:17
|
433 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:518:33
|
518 | ... let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:576:25
|
576 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:639:21
|
639 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:857:37
|
857 | ... let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\relay.rs:397:17
|
397 | let mut transport = transport_arc.write().await;
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\relay.rs:452:17
|
452 | let mut transport: tokio::sync::RwLockWriteGuard<NativeP2PTransport> =
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\relay.rs:474:17
|
474 | let mut transport = transport_arc.write().await;
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\swarm_controller.rs:97:14
|
97 | let (mut p2p_transport, mut driver) = NativeP2PTransport::new(None, None).map_err(|e| {
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `from_peer`
--> crates\zks_wire\src\faisal_swarm\relay.rs:145:9
|
145 | from_peer: PeerId,
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_peer`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\mod.rs:259:13
|
259 | let mut cipher = self.backward_cipher.write().map_err(|e| {
| ----^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `faisal_request_timeout`
--> crates\zks_wire\src\p2p.rs:417:9
|
417 | faisal_request_timeout: Option<Duration>,
| ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_faisal_request_timeout`
warning: unused variable: `request_id`
--> crates\zks_wire\src\p2p.rs:770:21
|
770 | request_id,
| ^^^^^^^^^^ help: try ignoring the field: `request_id: _`
warning: methods `create_extend_payload`, `encrypt_cell_for_hop`, and `encrypt_data_for_hop` are never used
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:757:8
|
167 | impl<S: SignalingClientTrait> FaisalSwarmManager<S> {
| --------------------------------------------------- methods in this implementation
...
757 | fn create_extend_payload(&self, next_hop: &SwarmHop) -> Result<Vec<u8>> {
| ^^^^^^^^^^^^^^^^^^^^^
...
1172 | fn encrypt_cell_for_hop(
| ^^^^^^^^^^^^^^^^^^^^
...
1207 | fn encrypt_data_for_hop(
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: associated function `generate_vernam_key` is never used
--> crates\zks_wire\src\faisal_swarm\encryption.rs:119:8
|
39 | impl FaisalSwarmEncryption {
| -------------------------- associated function in this implementation
...
119 | fn generate_vernam_key(hop_index: usize) -> Result<[u8; 32]> {
| ^^^^^^^^^^^^^^^^^^^
warning: fields `peer_id`, `multiaddr`, and `connected` are never read
--> crates\zks_wire\src\faisal_swarm\relay.rs:69:5
|
68 | struct RelayConnection {
| --------------- fields in this struct
69 | peer_id: PeerId,
| ^^^^^^^
70 | multiaddr: Multiaddr,
| ^^^^^^^^^
71 | connected: bool,
| ^^^^^^^^^
|
= note: `RelayConnection` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
warning: field `local_peer_id` is never read
--> crates\zks_wire\src\p2p.rs:369:5
|
365 | pub struct NativeP2PDriver {
| --------------- field in this struct
...
369 | local_peer_id: PeerId,
| ^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:457:9
|
457 | room_id: String,
| ^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> crates\zks_wire\src\lib.rs:33:9
|
33 | #![warn(missing_docs)]
| ^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:458:9
|
458 | peer_info: PeerInfo,
| ^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:461:13
|
461 | Leave { room_id: String },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:463:16
|
463 | Discover { room_id: String },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:465:13
|
465 | Peers { peers: Vec<PeerInfo> },
| ^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:467:22
|
467 | EntropyRequest { room_id: String, request_id: String },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:467:39
|
467 | EntropyRequest { room_id: String, request_id: String },
| ^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:470:9
|
470 | request_id: String,
| ^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:471:9
|
471 | entropy: Vec<u8>,
| ^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:472:9
|
472 | signature: Vec<u8>,
| ^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:476:13
|
476 | Error { code: String, message: String },
| ^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:476:27
|
476 | Error { code: String, message: String },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:478:19
|
478 | JoinSuccess { room_id: String, peer_count: usize },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:478:36
|
478 | JoinSuccess { room_id: String, peer_count: usize },
| ^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:480:20
|
480 | LeaveSuccess { room_id: String },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:482:18
|
482 | PeerJoined { peer_info: PeerInfo },
| ^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\cloudflare_signaling.rs:484:16
|
484 | PeerLeft { peer_id: String },
| ^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:491:5
|
491 | ConnectionFailed(String),
| ^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:494:5
|
494 | ConnectionTimeout,
| ^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:497:5
|
497 | ConnectionClosed,
| ^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:500:5
|
500 | SendFailed(String),
| ^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:503:5
|
503 | SendTimeout,
| ^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:506:5
|
506 | ConnectionError(String),
| ^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:509:5
|
509 | ReceiveFailed(String),
| ^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:512:5
|
512 | ReceiveTimeout,
| ^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:515:5
|
515 | ResponseTimeout,
| ^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:518:5
|
518 | SerializationFailed(String),
| ^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:521:5
|
521 | DeserializationFailed(String),
| ^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:524:5
|
524 | ServerError(String),
| ^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:527:5
|
527 | UnexpectedMessage(&'static str),
| ^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:530:5
|
530 | InvalidEntropy(&'static str),
| ^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:533:5
|
533 | NoAvailableEndpoints,
| ^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\cloudflare_signaling.rs:536:5
|
536 | HttpRequestError(String),
| ^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:23:5
|
23 | pub max_attempts: u32,
| ^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:24:5
|
24 | pub initial_delay: Duration,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:25:5
|
25 | pub max_delay: Duration,
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:26:5
|
26 | pub backoff_multiplier: f64,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:74:5
|
74 | pub total_circuits: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:75:5
|
75 | pub ready_circuits: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:76:5
|
76 | pub building_circuits: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:77:5
|
77 | pub failed_circuits: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\relay.rs:648:5
|
648 | pub active_circuits: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\relay.rs:649:5
|
649 | pub active_connections: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\faisal_swarm\relay.rs:650:5
|
650 | pub total_circuits: usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:38:9
|
38 | channel: request_response::ResponseChannel<FaisalSwarmResponse>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:39:9
|
39 | response: FaisalSwarmResponse,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:43:9
|
43 | addr: Multiaddr,
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:44:9
|
44 | response: oneshot::Sender<Result<(), NativeP2PError>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:48:9
|
48 | peer_id: PeerId,
| ^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:49:9
|
49 | request: FaisalSwarmRequest,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a struct field
--> crates\zks_wire\src\p2p.rs:50:9
|
50 | response_sender: oneshot::Sender<Result<FaisalSwarmResponse, NativeP2PError>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:52:5
|
52 | SubscribeEntropy,
| ^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:53:5
|
53 | UnsubscribeEntropy,
| ^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:54:5
|
54 | PublishEntropy(Vec<u8>),
| ^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:55:5
|
55 | AddEntropyProvider(Vec<u8>, PeerId),
| ^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:62:5
|
62 | GetEntropyProviders(Vec<u8>, oneshot::Sender<Vec<PeerId>>),
| ^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:63:5
|
63 | AddKadBootstrap(PeerId, Multiaddr),
| ^^^^^^^^^^^^^^^
warning: missing documentation for a variant
--> crates\zks_wire\src\p2p.rs:64:5
|
64 | BootstrapKad(oneshot::Sender<Result<(), NativeP2PError>>),
| ^^^^^^^^^^^^
warning: missing documentation for a method
--> crates\zks_wire\src\p2p.rs:570:5
|
570 | / pub fn set_faisal_request_handler<F>(&mut self, handler: F)
571 | | where
572 | | F: Fn(PeerId, FaisalSwarmRequest) -> BoxFuture<'static, FaisalSwarmResponse>
573 | | + Send
574 | | + Sync
575 | | + 'static,
| |______________________^
warning: missing documentation for a method
--> crates\zks_wire\src\p2p.rs:580:5
|
580 | / pub fn set_entropy_message_sender(
581 | | &mut self,
582 | | sender: mpsc::UnboundedSender<(EntropyGossipMessage, PeerId)>,
583 | | ) {
| |_____^
warning: missing documentation for a method
--> crates\zks_wire\src\p2p.rs:587:5
|
587 | pub async fn listen_on(&mut self, addr: Multiaddr) -> Result<(), NativeP2PError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a method
--> crates\zks_wire\src\p2p.rs:592:5
|
592 | pub async fn run(mut self) -> Result<(), NativeP2PError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: `zks_wire` (lib) generated 83 warnings (run `cargo fix --lib -p zks_wire` to apply 17 suggestions)
Checking zks_cover v0.1.0 (D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_cover)
Checking zks_proto v0.1.0 (D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_proto)
Checking zks_surb v0.1.0 (D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_surb)
error[E0599]: no variant or associated item named `NetworkError` found for enum `SurbError` in the current scope
--> crates\zks_surb\src\surb.rs:181:37
|
181 | .map_err(|e| SurbError::NetworkError(format!("Discovery failed: {}", e)))?;
| ^^^^^^^^^^^^ variant or associated item not found in `SurbError`
|
::: crates\zks_surb\src\error.rs:5:1
|
5 | pub enum SurbError {
| ------------------ variant or associated item `NetworkError` not found for this enum
error[E0599]: no variant or associated item named `InvalidArgument` found for enum `SurbError` in the current scope
--> crates\zks_surb\src\surb.rs:184:35
|
184 | return Err(SurbError::InvalidArgument(format!(
| ^^^^^^^^^^^^^^^ variant or associated item not found in `SurbError`
|
::: crates\zks_surb\src\error.rs:5:1
|
5 | pub enum SurbError {
| ------------------ variant or associated item `InvalidArgument` not found for this enum
error[E0061]: this function takes 2 arguments but 1 argument was supplied
--> crates\zks_surb\src\surb_utils.rs:16:36
|
16 | let (surb, private_data) = ZksSurb::create(recipient_pk)?;
| ^^^^^^^^^^^^^^^-------------- argument #2 of type `&dyn zks_wire::PeerProvider` is missing
|
note: associated function defined here
--> crates\zks_surb\src\surb.rs:95:18
|
95 | pub async fn create(
| ^^^^^^
96 | recipient_pk: &[u8],
97 | peer_provider: &dyn PeerProvider,
| --------------------------------
help: provide the argument
|
16 | let (surb, private_data) = ZksSurb::create(recipient_pk, /* &dyn zks_wire::PeerProvider */)?;
| +++++++++++++++++++++++++++++++++++
error[E0277]: the `?` operator can only be applied to values that implement `Try`
--> crates\zks_surb\src\surb_utils.rs:16:36
|
16 | let (surb, private_data) = ZksSurb::create(recipient_pk)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = std::result::Result<(surb::ZksSurb, surb::PrivateSurbData), SurbError>>`
|
= help: the trait `Try` is not implemented for `impl Future<Output = std::result::Result<(surb::ZksSurb, surb::PrivateSurbData), SurbError>>`
note: this implements `Future` and its output type supports `?`, but the future cannot be awaited in a synchronous function
--> crates\zks_surb\src\surb_utils.rs:16:65
|
8 | / pub fn generate_surbs(
9 | | count: usize,
10 | | recipient_pk: &[u8],
11 | | ) -> Result<(Vec<ZksSurb>, Vec<crate::surb::PrivateSurbData>)> {
| |______________________________________________________________- this is not `async`
...
16 | let (surb, private_data) = ZksSurb::create(recipient_pk)?;
| ^
error[E0061]: this function takes 3 arguments but 2 arguments were supplied
--> crates\zks_surb\src\surb_utils.rs:36:36
|
36 | let (surb, private_data) = ZksSurb::create_with_config(recipient_pk, config)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------- argument #3 of type `&dyn zks_wire::PeerProvider` is missing
|
note: associated function defined here
--> crates\zks_surb\src\surb.rs:106:18
|
106 | pub async fn create_with_config(
| ^^^^^^^^^^^^^^^^^^
...
109 | peer_provider: &dyn PeerProvider,
| --------------------------------
help: provide the argument
|
36 | let (surb, private_data) = ZksSurb::create_with_config(recipient_pk, config, /* &dyn zks_wire::PeerProvider */)?;
| +++++++++++++++++++++++++++++++++++
error[E0277]: the `?` operator can only be applied to values that implement `Try`
--> crates\zks_surb\src\surb_utils.rs:36:36
|
36 | let (surb, private_data) = ZksSurb::create_with_config(recipient_pk, config)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future<Output = std::result::Result<(surb::ZksSurb, surb::PrivateSurbData), SurbError>>`
|
= help: the trait `Try` is not implemented for `impl Future<Output = std::result::Result<(surb::ZksSurb, surb::PrivateSurbData), SurbError>>`
note: this implements `Future` and its output type supports `?`, but the future cannot be awaited in a synchronous function
--> crates\zks_surb\src\surb_utils.rs:36:85
|
27 | / pub fn generate_surbs_with_config(
28 | | count: usize,
29 | | recipient_pk: &[u8],
30 | | config: &crate::config::SurbConfig,
31 | | ) -> Result<(Vec<ZksSurb>, Vec<crate::surb::PrivateSurbData>)> {
| |______________________________________________________________- this is not `async`
...
36 | let (surb, private_data) = ZksSurb::create_with_config(recipient_pk, config)?;
| ^
warning: unused import: `rand::Rng`
--> crates\zks_cover\src\mixing_delay.rs:46:5
|
46 | use rand::Rng;
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: field `config` is never read
--> crates\zks_cover\src\transport.rs:21:5
|
20 | pub struct CoverTransport {
| -------------- field in this struct
21 | config: CoverConfig,
| ^^^^^^
|
= note: `CoverTransport` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
Some errors have detailed explanations: E0061, E0277, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `zks_surb` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
warning: `zks_cover` (lib) generated 2 warnings