Resolved 22 compilation errors: - Fixed lib.rs re-exports to use correct submodule paths - Added missing submodule declarations to module files - Created stub files for referenced submodules - Fixed main.rs imports to use lib.rs re-exports Project now compiles successfully with only 2 expected warnings: - dead_code warning for jobs field in JobManager - unused_variable warning for job_manager in main Both warnings are expected for scaffolding phase.
27 lines
875 B
Rust
27 lines
875 B
Rust
//! Linux Patch API - Secure Remote Package Management
|
|
//!
|
|
//! A Rust-based API service for secure remote management of patching processes
|
|
//! and software add/remove operations on Linux systems.
|
|
//!
|
|
//! # Architecture
|
|
//!
|
|
//! - **API Layer**: HTTP/HTTPS endpoints with mTLS authentication
|
|
//! - **Auth Layer**: Certificate validation and IP whitelist enforcement
|
|
//! - **Job Manager**: Async job queue with WebSocket status streaming
|
|
//! - **Package Backend**: Pluggable package manager adapters
|
|
//! - **Audit Logger**: systemd journal + file fallback
|
|
//! - **Config Manager**: YAML config with auto-reload
|
|
|
|
pub mod api;
|
|
pub mod auth;
|
|
pub mod config;
|
|
pub mod jobs;
|
|
pub mod logging;
|
|
pub mod packages;
|
|
pub mod systemd;
|
|
|
|
// Re-export commonly used types from submodules
|
|
pub use config::loader::AppConfig;
|
|
pub use jobs::manager::JobManager;
|
|
pub use logging::init::init_logging;
|