From e6d5915f47c7d300e3ad9e081b1e3f010d7f745e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Nov 2025 16:31:00 +0000 Subject: [PATCH] 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. --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3c23e3c..dcd2e0d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")]