Fix: use lib crate imports in main.rs
Binary targets must import from the library using the crate name (aigpt::), not as local modules (pub mod memory). This fixes the 'unresolved import' errors.
This commit is contained in:
@@ -2,11 +2,8 @@ use anyhow::Result;
|
||||
use clap::{Parser, Subcommand};
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub mod memory;
|
||||
pub mod mcp;
|
||||
|
||||
use memory::MemoryManager;
|
||||
use mcp::BaseMCPServer;
|
||||
use aigpt::memory::MemoryManager;
|
||||
use aigpt::mcp::BaseMCPServer;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[command(name = "aigpt")]
|
||||
|
||||
Reference in New Issue
Block a user