Implement system state management with TOML serialization

- Introduced `SystemState` struct to manage system state, including stage, target, architecture, and layers.
- Added functions to load and save system state from/to a TOML file.
- Implemented layer management functions: add, set, and remove packages from layers.
- Created initialization function for LBI layout, including directory and symlink creation.
- Added tests for layer management and LBI layout initialization.
This commit is contained in:
2026-05-20 19:54:00 -05:00
parent d61d59f4f5
commit 1833a2c42d
18 changed files with 8820 additions and 354 deletions
+2
View File
@@ -1,6 +1,7 @@
//! Depot - Not Your Average Package Manager
//! A source-based package manager for Linux
mod bootstrap;
mod build_options;
mod builder;
mod cli;
@@ -24,6 +25,7 @@ mod shell_helpers;
mod signing;
mod source;
mod staging;
mod system_state;
#[cfg(test)]
mod test_support;
mod ui;