refactor and add peaq support
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user