warning: unused import: `items::Entity as ItemsEntity` --> src\mcp.rs:12:30 | 12 | ...s, items::Entity as ItemsEntity}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default warning: unused import: `crate::entities::items` --> src\lib.rs:6:5 | 6 | use crate::entities::items; | ^^^^^^^^^^^^^^^^^^^^^^ warning: field `jsonrpc` is never read --> src\mcp.rs:17:9 | 16 | pub struct JsonRpcRequest { | -------------- field in this struct 17 | pub jsonrpc: String, | ^^^^^^^ | = note: `JsonRpcRequest` 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 warning: `app` (lib) generated 3 warnings (run `cargo fix --lib -p app` to apply 2 suggestions) Compiling app v0.1.0 (D:\develop\sqlitevector\src-tauri) error[E0603]: module `mcp` is private --> tests\integration_test.rs:1:25 | 1 | use app_lib::{AppState, mcp, db, llama::LlamaClient}; | ^^^ private module | note: the module `mcp` is defined here --> D:\develop\sqlitevector\src-tauri\src\lib.rs:3:1 | 3 | mod mcp; | ^^^^^^^ error[E0603]: module `db` is private --> tests\integration_test.rs:1:30 | 1 | use app_lib::{AppState, mcp, db, llama::LlamaClient}; | ^^ private module | note: the module `db` is defined here --> D:\develop\sqlitevector\src-tauri\src\lib.rs:1:1 | 1 | mod db; | ^^^^^^ error[E0603]: module `llama` is private --> tests\integration_test.rs:1:34 | 1 | use app_lib::{AppState, mcp, db, llama::LlamaClient}; | ^^^^^ private module | note: the module `llama` is defined here --> D:\develop\sqlitevector\src-tauri\src\lib.rs:2:1 | 2 | mod llama; | ^^^^^^^^^ warning: unused import: `sea_orm::DatabaseConnection` --> tests\integration_test.rs:3:5 | 3 | use sea_orm::DatabaseConnection; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default error[E0599]: no method named `get_database_backend` found for enum `DatabaseConnection` in the current scope --> tests\integration_test.rs:22:27 | 22 | let db_backend = conn.get_database_backend(); | ^^^^^^^^^^^^^^^^^^^^ method not found in `DatabaseConnection` | ::: C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\sea-orm-1.1.19\src\database\connection.rs:13:8 | 13 | fn get_database_backend(&self) -> DbBackend; | -------------------- the method is available for `DatabaseConnection` here | = help: items from traits can only be used if the trait is in scope help: trait `ConnectionTrait` which provides `get_database_backend` is implemented but not in scope; perhaps you want to import it | 1 + use sea_orm::ConnectionTrait; | error[E0599]: no method named `execute` found for enum `DatabaseConnection` in the current scope --> tests\integration_test.rs:23:10 | 23 | conn.execute(db_backend.build(sea_orm::sea_query::Table::create() | -----^^^^^^^ method not found in `DatabaseConnection` | ::: C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\sea-orm-1.1.19\src\database\connection.rs:16:14 | 16 | async fn execute(&self, stmt: Statement) -> Result; | ------- the method is available for `DatabaseConnection` here | note: the method `execute` exists on the type `sea_orm::SqlxSqlitePoolConnection` --> C:\Users\bythe\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\sea-orm-1.1.19\src\driver\sqlx_sqlite.rs:131:5 | 131 | pub async fn execute(&self, stmt: Statement) -> Result { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is in scope help: trait `ConnectionTrait` which provides `execute` is implemented but not in scope; perhaps you want to import it | 1 + use sea_orm::ConnectionTrait; | error[E0282]: type annotations needed --> tests\integration_test.rs:23:5 | 23 | / conn.execute(db_backend.build(sea_orm::sea_query::Table::create() 24 | | .table(app_lib::entities::items::Entity) 25 | | .if_not_exists() 26 | | .col(sea_orm::sea_query::ColumnDef::new(app_lib::entities::items::Column::Id).integer().not_null().auto_increment().primary_key()) ... | 30 | | .col(sea_orm::sea_query::ColumnDef::new(app_lib::entities::items::Column::UpdatedAt).string()) 31 | | )).await.expect("Failed to create table"); | |____________^ cannot infer type Some errors have detailed explanations: E0282, E0599, E0603. For more information about an error, try `rustc --explain E0282`. warning: `app` (test "integration_test") generated 1 warning error: could not compile `app` (test "integration_test") due to 6 previous errors; 1 warning emitted