feat: Migrate SAL to Cargo workspace
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled

- Migrate individual modules to independent crates
- Refactor dependencies for improved modularity
- Update build system and testing infrastructure
- Update documentation to reflect new structure
This commit is contained in:
Mahmoud-Emad
2025-06-24 12:39:18 +03:00
parent 8012a66250
commit e125bb6511
54 changed files with 1196 additions and 1582 deletions

View File

@@ -1,24 +1,24 @@
//! # SAL Virt Package
//!
//!
//! The `sal-virt` package provides comprehensive virtualization and containerization tools
//! for building, managing, and deploying containers and filesystem layers.
//!
//!
//! ## Features
//!
//!
//! - **Buildah**: OCI/Docker image building with builder pattern API
//! - **Nerdctl**: Container lifecycle management with containerd
//! - **RFS**: Remote filesystem mounting and layer management
//! - **Cross-Platform**: Works across Windows, macOS, and Linux
//! - **Rhai Integration**: Full support for Rhai scripting language
//! - **Error Handling**: Comprehensive error types and handling
//!
//!
//! ## Modules
//!
//!
//! - [`buildah`]: Container image building with Buildah
//! - [`nerdctl`]: Container management with Nerdctl
//! - [`rfs`]: Remote filesystem operations
//!
//! This package depends on `sal-process` for command execution and `sal-os` for
//!
//! This package depends on `sal-process` for command execution and `sal-os` for
//! filesystem operations.
pub mod buildah;
@@ -28,6 +28,6 @@ pub mod rfs;
pub mod rhai;
// Re-export main types and functions for convenience
pub use buildah::{Builder, BuildahError, ContentOperations};
pub use nerdctl::{Container, NerdctlError, HealthCheck, ContainerStatus};
pub use rfs::{RfsBuilder, PackBuilder, RfsError, Mount, MountType, StoreSpec};
pub use buildah::{BuildahError, Builder, ContentOperations};
pub use nerdctl::{Container, ContainerStatus, HealthCheck, NerdctlError};
pub use rfs::{Mount, MountType, PackBuilder, RfsBuilder, RfsError, StoreSpec};