Repository navigation
Closed
Labels
Description
Overview
Set up the initial package structure for the business logic layer and configure Cargo workspace to support the hybrid package approach (core + nlp-engine).
Implementation Tasks
- Create
packages/coredirectory structure - Set up root
Cargo.tomlwith workspace configuration - Configure
packages/core/Cargo.tomlwith dependencies - Add SQLx dependencies for database operations
- Set up basic
src/lib.rsstructure with module declarations - Configure workspace-level settings and shared dependencies
Directory Structure
nodespace-core/
├── Cargo.toml # Workspace root (UPDATE)
├── packages/
│ ├── core/ # NEW
│ │ ├── Cargo.toml # NEW
│ │ ├── src/
│ │ │ ├── lib.rs # NEW
│ │ │ ├── models/ # NEW (empty module)
│ │ │ ├── behaviors/ # NEW (empty module)
│ │ │ ├── services/ # NEW (empty module)
│ │ │ ├── db/ # NEW (empty module)
│ │ │ └── mcp/ # NEW (empty module)
│ │ └── migrations/ # NEW (empty)
│ └── desktop-app/ # EXISTING
Dependencies to Add
# packages/core/Cargo.toml
[dependencies]
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite", "chrono", "json"] }
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.6", features = ["v4", "serde"] }
thiserror = "1.0"
anyhow = "1.0"
async-trait = "0.1"Acceptance Criteria
- packages/core directory created with proper structure
- Cargo workspace configured and builds successfully
- All dependencies properly specified and resolve
- Basic module structure in place (empty modules)
-
cargo checkpasses from workspace root -
cargo buildsucceeds for core package - Migrations directory created (empty)
Technical Specifications
Reference Files:
- Review existing
Cargo.tomlfor workspace patterns - Check
packages/desktop-app/src-tauri/Cargo.tomlfor dependency versions
Module Structure:
- Each module should have
mod.rswith basic documentation - Public API exports defined in
src/lib.rs - Follow Rust module naming conventions
Testing Setup:
- Include
tests/directory structure - Set up integration test configuration
Activity
Initialize packages/core with Cargo workspace configuration (addresses …
Initialize packages/core with Cargo workspace configuration (#135)
Initialize packages/core with Cargo workspace configuration (#135)
Initialize packages/core with Cargo workspace configuration (#135)
Initialize packages/core with Cargo workspace configuration (#135)