Merge branch 'development' of github.com:incubaid/herolib into development

* 'development' of github.com:incubaid/herolib:
  bump version to 1.0.34
  feat: Add heroscript serialization/deserialization functions
  fix: Remove the seurity workflow
  update the ci security workfolw
  feat: Add encoderhero and heroscript_dumps/loads
This commit is contained in:
2025-10-14 09:21:27 +04:00
37 changed files with 418 additions and 142 deletions

View File

@@ -23,3 +23,14 @@ fn obj_init(mycfg_ ZinitInstaller) !ZinitInstaller {
fn configure() ! {
// mut installer := get()!
}
/////////////NORMALLY NO NEED TO TOUCH
pub fn heroscript_dumps(obj ZinitInstaller) !string {
return encoderhero.encode[ZinitInstaller](obj)!
}
pub fn heroscript_loads(heroscript string) !ZinitInstaller {
mut obj := encoderhero.decode[ZinitInstaller](heroscript)!
return obj
}