refactor and add peaq support

This commit is contained in:
2025-05-09 16:57:31 +03:00
parent 98ab2e1536
commit 07390c3cae
26 changed files with 1248 additions and 275 deletions

View File

@@ -11,7 +11,7 @@ mod nerdctl;
mod git;
mod text;
mod rfs;
mod crypto;
mod hero_vault; // This module now uses hero_vault internally
#[cfg(test)]
mod tests;
@@ -75,7 +75,7 @@ pub use crate::text::{
pub use text::*;
// Re-export crypto module
pub use crypto::register_crypto_module;
pub use hero_vault::register_crypto_module;
// Rename copy functions to avoid conflicts
pub use os::copy as os_copy;
@@ -121,10 +121,10 @@ pub fn register(engine: &mut Engine) -> Result<(), Box<rhai::EvalAltResult>> {
rfs::register(engine)?;
// Register Crypto module functions
crypto::register_crypto_module(engine)?;
hero_vault::register_crypto_module(engine)?;
// Future modules can be registered here
Ok(())
}
}