111 lines
8.5 KiB
Plaintext
111 lines
8.5 KiB
Plaintext
cargo : Checking app v0.1.0 (C:\Users\eliot\Documents\Projects\beStream\src-tauri)
|
|
At line:1 char:1
|
|
+ cargo check > compile_errors.txt 2>&1
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: ( Checking ap...ream\src-tauri):String) [
|
|
], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
warning: unused import: `base64::prelude::BASE64_STANDARD`
|
|
--> src\torrent_server.rs:3:5
|
|
|
|
|
3 | use base64::prelude::BASE64_STANDARD;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
|
|
|
|
warning: unused import: `base64::Engine`
|
|
--> src\torrent_server.rs:4:5
|
|
|
|
|
4 | use base64::Engine;
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
warning: unused import: `Deserialize`
|
|
--> src\torrent_server.rs:6:24
|
|
|
|
|
6 | use serde::{Serialize, Deserialize};
|
|
| ^^^^^^^^^^^
|
|
|
|
error[E0308]: mismatched types
|
|
--> src\torrent_server.rs:26:31
|
|
|
|
|
26 | session: Arc::new(session),
|
|
| -------- ^^^^^^^ expected `Session`, found `Arc<Session>`
|
|
| |
|
|
| arguments to this function are incorrect
|
|
|
|
|
= note: expected struct `librqbit::Session`
|
|
found struct `Arc<librqbit::Session>`
|
|
note: associated function defined here
|
|
--> /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb\library\alloc\src\sync.rs:406:12
|
|
|
|
error[E0308]: mismatched types
|
|
--> src\torrent_server.rs:32:47
|
|
|
|
|
32 | let handle = self.session.add_torrent(magnet, Some(opts)).await
|
|
| ----------- ^^^^^^ expected `AddTorrent<'_>`,
|
|
found `&str`
|
|
| |
|
|
| arguments to this method are incorrect
|
|
|
|
|
note: method defined here
|
|
--> C:\Users\eliot\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\librqbit-8.1.1
|
|
\src\session.rs:900:12
|
|
|
|
|
900 | pub fn add_torrent<'a>(
|
|
| ^^^^^^^^^^^
|
|
|
|
error[E0308]: mismatched types
|
|
--> src\torrent_server.rs:44:48
|
|
|
|
|
44 | if let Some(handle) = self.session.get(id) {
|
|
| --- ^^ expected `TorrentIdOrHash`,
|
|
found `usize`
|
|
| |
|
|
| arguments to this method are incorrect
|
|
|
|
|
note: method defined here
|
|
--> C:\Users\eliot\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\librqbit-8.1.
|
|
1\src\session.rs:1220:12
|
|
|
|
|
1220 | pub fn get(&self, id: TorrentIdOrHash) -> Option<ManagedTorrentHandle> {
|
|
| ^^^
|
|
help: try wrapping the expression in `librqbit::api::TorrentIdOrHash::Id`
|
|
|
|
|
44 | if let Some(handle) =
|
|
self.session.get(librqbit::api::TorrentIdOrHash::Id(id)) {
|
|
|
|
|
+++++++++++++++++++++++++++++++++++ +
|
|
|
|
error[E0609]: no field `download_speed` on type `librqbit::TorrentStats`
|
|
--> src\torrent_server.rs:49:40
|
|
|
|
|
49 | download_speed: stats.download_speed,
|
|
| ^^^^^^^^^^^^^^ unknown field
|
|
|
|
|
= note: available fields are: `state`, `file_progress`, `error`, `progress_bytes`,
|
|
`uploaded_bytes` ... and 3 others
|
|
|
|
error[E0609]: no field `upload_speed` on type `librqbit::TorrentStats`
|
|
--> src\torrent_server.rs:50:38
|
|
|
|
|
50 | upload_speed: stats.upload_speed,
|
|
| ^^^^^^^^^^^^ unknown field
|
|
|
|
|
= note: available fields are: `state`, `file_progress`, `error`, `progress_bytes`,
|
|
`uploaded_bytes` ... and 3 others
|
|
|
|
error[E0609]: no field `peers` on type `librqbit::TorrentStats`
|
|
--> src\torrent_server.rs:51:35
|
|
|
|
|
51 | num_peers: stats.peers,
|
|
| ^^^^^ unknown field
|
|
|
|
|
= note: available fields are: `state`, `file_progress`, `error`, `progress_bytes`,
|
|
`uploaded_bytes` ... and 3 others
|
|
|
|
Some errors have detailed explanations: E0308, E0609.
|
|
For more information about an error, try `rustc --explain E0308`.
|
|
warning: `app` (bin "app") generated 3 warnings
|
|
error: could not compile `app` (bin "app") due to 6 previous errors; 3 warnings emitted
|