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

@@ -29,8 +29,8 @@ fn get_available_socket_path() -> Option<String> {
None
}
#[tokio::test]
async fn test_rhai_zinit_list() {
#[test]
fn test_rhai_zinit_list() {
if let Some(socket_path) = get_available_socket_path() {
let engine = create_zinit_engine().expect("Failed to create Rhai engine");
@@ -70,8 +70,8 @@ async fn test_rhai_zinit_list() {
}
}
#[tokio::test]
async fn test_rhai_service_management() {
#[test]
fn test_rhai_service_management() {
if let Some(socket_path) = get_available_socket_path() {
let engine = create_zinit_engine().expect("Failed to create Rhai engine");
@@ -188,8 +188,8 @@ async fn test_rhai_service_management() {
}
}
#[tokio::test]
async fn test_rhai_logs_functionality() {
#[test]
fn test_rhai_logs_functionality() {
if let Some(socket_path) = get_available_socket_path() {
let engine = create_zinit_engine().expect("Failed to create Rhai engine");
@@ -254,8 +254,8 @@ async fn test_rhai_logs_functionality() {
}
}
#[tokio::test]
async fn test_rhai_kill_functionality() {
#[test]
fn test_rhai_kill_functionality() {
if let Some(socket_path) = get_available_socket_path() {
let engine = create_zinit_engine().expect("Failed to create Rhai engine");
@@ -348,8 +348,8 @@ async fn test_rhai_kill_functionality() {
}
}
#[tokio::test]
async fn test_rhai_error_handling() {
#[test]
fn test_rhai_error_handling() {
let engine = create_zinit_engine().expect("Failed to create Rhai engine");
let script = r#"
@@ -386,8 +386,8 @@ async fn test_rhai_error_handling() {
}
}
#[tokio::test]
async fn test_rhai_get_service_config() {
#[test]
fn test_rhai_get_service_config() {
if let Some(socket_path) = get_available_socket_path() {
let engine = create_zinit_engine().expect("Failed to create Rhai engine");