Checking telos-db v0.2.0 (D:\develop\TelosDB\src-backend)
warning: unused import: `Emitter`
--> src\lib.rs:16:13
|
16 | use tauri::{Emitter, Manager};
| ^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
error[E0597]: `clean_ext_path` does not live long enough
--> src\db.rs:19:20
|
10 | let clean_ext_path = extension_path
| -------------- binding `clean_ext_path` declared here
...
17 | let options = SqliteConnectOptions::from_str(&db_url)?
| ___________________-
18 | | .create_if_missing(true)
19 | | .extension(&clean_ext_path);
| |____________________^^^^^^^^^^^^^^^- argument requires that `clean_ext_path` is borrowed for `'static`
| |
| borrowed value does not live long enough
...
107 | }
| - `clean_ext_path` dropped here while still borrowed
|
note: requirement that the value outlives `'static` introduced here
--> C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\sqlx-sqlite-0.8.6\src\options\mod.rs:487:53
|
487 | pub fn extension(mut self, extension_name: impl Into<Cow<'static, str>>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `emit` found for struct `AppHandle<R>` in the current scope
--> src\mcp\mod.rs:28:28
|
28 | let _ = app_handle.emit("mcp-connection-update", new_count);
| ^^^^
|
::: C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-2.10.2\src\lib.rs:952:6
|
952 | fn emit<S: Serialize + Clone>(&self, event: &str, payload: S) -> Result<()> {
| ---- the method is available for `AppHandle` here
|
= help: items from traits can only be used if the trait is in scope
help: there is a method `exit` with a similar name, but with different arguments
--> C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-2.10.2\src\app.rs:532:3
|
532 | pub fn exit(&self, exit_code: i32) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: trait `Emitter` which provides `emit` is implemented but not in scope; perhaps you want to import it
|
1 + use tauri::Emitter;
|
error[E0599]: no method named `emit` found for struct `AppHandle<R>` in the current scope
--> src\mcp\mod.rs:37:33
|
37 | let _ = self.app_handle.emit("mcp-connection-update", new_count);
| ^^^^
|
::: C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-2.10.2\src\lib.rs:952:6
|
952 | fn emit<S: Serialize + Clone>(&self, event: &str, payload: S) -> Result<()> {
| ---- the method is available for `AppHandle` here
|
= help: items from traits can only be used if the trait is in scope
help: there is a method `exit` with a similar name, but with different arguments
--> C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-2.10.2\src\app.rs:532:3
|
532 | pub fn exit(&self, exit_code: i32) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: trait `Emitter` which provides `emit` is implemented but not in scope; perhaps you want to import it
|
1 + use tauri::Emitter;
|
error[E0308]: mismatched types
--> src\lib.rs:523:50
|
523 | tray_builder = tray_builder.icon(icon); // Tauri 2 likely takes &Image or handles conversion
| ---- ^^^^ expected `Image<'_>`, found `&Image<'_>`
| |
| arguments to this method are incorrect
|
note: method defined here
--> C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tauri-2.10.2\src\tray\mod.rs:252:10
|
252 | pub fn icon(mut self, icon: Image<'_>) -> Self {
| ^^^^
warning: variable does not need to be mutable
--> src\lib.rs:380:9
|
380 | let mut model_path = base_dir.join("models").join("embeddinggemma-300m-q4_0.gguf");
| ----^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
Some errors have detailed explanations: E0308, E0597, E0599.
For more information about an error, try `rustc --explain E0308`.
warning: `telos-db` (lib) generated 2 warnings
error: could not compile `telos-db` (lib) due to 4 previous errors; 2 warnings emitted